I've installed pip and virtualenv (with sudo) and I've created my first python app using cookiecutter . I've also run virtualenv my_app
followed by source ~/virt/bin/activate
.
But when I cd to my app, cd /vagrant
and run python setup.py test
I see the eggs and packages I need are all downloaded into my app, ie the current directory.
I was sort of expecting them to go into ~/virt/
What am I doing wrong?
The path should be ./my_app/bin/activate. With the above you are looking for a virtualenv named virt in your home directory, which is likely not what you want.
Assuming that you created an application called my_app in your home directory you would need to call source ~/my_app/bin/activate in order to create it
You can find more usage information here.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.