IntelliJ Python using virtualenv and the terminal
已回答
Hi,
I'm using the IntelliJ Python plugin and I've created a virtualenv. I would like to use the terminal (Alt+F12) to install some Python packages into my new virtual environment but the terminal still uses my system Python. Is there a way that when I open a terminal in my project that it will point to my virtual environment Python?
Thanks
请先登录再写评论。
Hi,
You could active virtual environment in the terminal and then install packages, but why installing packages with UI (https://www.jetbrains.com/help/idea/installing-uninstalling-and-upgrading-packages.html) isn't suitable?
Thanks Sergey you're right I didn't know it existed but finally found it. Thanks.
I have another question about the terminal and the virtual environment should I ask that here or should I make a new question? It has to do with trying to activate but do not have permission.
I think it would be better to create a new one, because other people can get confused when looking for the solution.
Please attach to the new request a screenshot showing the problem and upload logs folder zipped (Help | Show Log in...) to https://uploads.services.jetbrains.com/ and let me know the name of the zip file so I can find it.