DEV Community

Discussion on: PyCharm vs Visual Studio Code to boost Productivity?

Collapse
shanalikhan profile image
Shan Khan Author

Yes, i used JetBrain's IntelliJ and found it very good. I am using Visual Studio Code and struggling with Pip Virtual Environments as of now and I heard PyCharm does it very well.

Thats why i wanted to hear the developers using PyCharm on their reviews about it.

Collapse
alexmacniven profile image
Alex Macniven

I always find it quicker and easier to manually supply the location of the venv in the settings file(s) as Using the Select Python Interpreter command doesn't do a good job at finding them.

I use pipenv so all my environments are in my C:\Users\Alex\.virtualenvs\ directory so there could be a more elaborate solution where the vscode command would monitor this directory for any python executables?

Thread Thread
shanalikhan profile image
Shan Khan Author

Using the Select Python Interpreter command doesn't do a good job at finding them.

I just found setting python.venvPath to your virual env. will allow Interpretor to list them in Code.

For example :

"python.venvPath": "~/python-virtual-environments/"
Collapse
thebouv profile image
Anthony Bouvier

What issues are you having with VSC and venvs? I'd like to try and help you.

What are you using to set up for venv? python -m venv or pipenv or the older virtualenvwrapper stuff?

I recently started using pipenv and it is a godsend.

And telling your python project in VSC to use a particular venv is very easy. Let me know how I can help.