Reputation: 61
In my github practice project, I set up it's own virtualenv by using the command virtualenv env
.
And I made a setup.py
file using the PyCharm IDE.
But the setup.py
didn't make a virtualenv automatically when I cloned the project in other PyCharm project.
I want to create my project's virtualenv automatically with setup.py
or by another method.
I tried searching for information, but I couldn't find what is required to automatically create a virtualenv.
Which thing do i need to know?
Upvotes: 0
Views: 990
Reputation: 979
a quick solution is just to execute the bash command
import os
os.system("virtualenv env")
as specified in the comments, this is not something you would usually want to do: PyCharm has its own way to manage virtualenvs
Upvotes: 1