I wanted to use virtual Django environment with pipenv. I created a file named djangotest in my desktop. I accessed it in terminal using cd ~/Desktop/djangotest
then I ran pipenv install django
and it says it installed successfully.
I opened the djangotest folder and didn't see pipfile and pipfile.lock. Then I saw that pipfile and pipfile.lock was created on my Desktop instead of the directory I wanted them to install on.
So is there a problem here or is it the thing that was supposed to happen?
pipenv is intended to create the Pipfile
and Pipfile.lock
in the current working directory. So instead of creating a "file" named djangotest, create a directory.
cd ~/Desktop
mkdir djangotest
cd djangotest
pipenv install django
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.