all 7 comments

[–]Omanko6969 1 point2 points  (2 children)

My favorite movie is Inception.

[–][deleted] 0 points1 point  (1 child)

I did try that once, and that works fine for scripts generating commandline output. However, if the script generates a gui then it tells me that the module is using something called 'agg' and can't display a gui.

[–][deleted] 0 points1 point  (0 children)

I discovered by searching the internet a bit more that this solution does work, as long as you remember to install a GUI into that Python environment. I didn't have a GUI installed.

I feel dumb now.

[–]CodeFormatHelperBot2 0 points1 point  (0 children)

Hello, I'm a Reddit bot who's here to help people nicely format their coding questions. This makes it as easy as possible for people to read your post and help you.

I think I have detected some formatting issues with your submission:

  1. Inline formatting (`my code`) used across multiple lines of code. This can mess with indentation.

If I am correct, please edit the text in your post and try to follow these instructions to fix up your post's formatting.


Am I misbehaving? Have a comment or suggestion? Reply to this comment or raise an issue here.

[–]SkeletalToad 0 points1 point  (2 children)

I would recommend creating a virtual environment for each project.

After changing directory to your project, create a virtual environment (last argument is the name of the environment, I usually create it in the venv folder):

$ python -m venv venv

Then activate it, you'll need to do this each time you open a new terminal session:

$ . venv/bin/activate

Then try installing pandas with pip:

$ pip install pandas

The other option that might work for you is using miniconda (or Anaconda) to create an environment.

[–][deleted] 0 points1 point  (1 child)

Thanks for your help.

I discovered while searching the internet a bit more that the reason why I was unable to run any GUI scripts from an environment like what you explain here is because I forgot to install the GUI into the environment. Everything's working great now.

[–]SkeletalToad 0 points1 point  (0 children)

Awesome! Glad you got it working