mkdir myproj # create new project dir.
cd myproj # change into your project dir.
pipenv --python 3.6 # create new clean virtual env.
pipenv install foo # install third party packages into your venv.
# write your code
pipenv run python myfile.py # Run your code inside the venv.
13
u/solostman Apr 30 '18
Sounds nice. Do you have a resource that can walk me through that in Pycharm?
I was using scrapy which required a virtualenv in terminal and (it worked but) it always felt like a black box of what was happening to me.