pip install pipenv
,過程大概須要一兩分鐘,具體網絡狀況而定Collecting pipenv
Using cached pipenv-11.9.0.tar.gz
Requirement already satisfied: pip>=9.0.1 in d:\python\python3.6.4\lib\site-packages (from pipenv)
Requirement already satisfied: certifi in d:\python\python3.6.4\lib\site-packages (from pipenv)
Requirement already satisfied: setuptools>=36.2.1 in d:\python\python3.6.4\lib\site-packages (from pipenv)
Requirement already satisfied: virtualenv-clone>=0.2.5 in d:\python\python3.6.4\lib\site-packages (from pipenv)
Requirement already satisfied: virtualenv in d:\python\python3.6.4\lib\site-packages (from pipenv)
Installing collected packages: pipenv
Running setup.py install for pipenv ... done
Successfully installed pipenv-11.9.0
複製代碼
安裝pipenv的時候是在全局安裝,此時安裝項目虛擬環境須要到你的項目目錄下面安裝
)pipenv install
Creating a virtualenv for this project…
Using d:\python\python3.6.4\python.exe (3.6.4) to create virtualenv…
Already using interpreter d:\python\python3.6.4\python.exe
Using base prefix 'd:\\python\\python3.6.4'
New python executable in D:\Python\virtualenv\envs\fisher-X6ixkNQM\Scripts\python.exe
Installing setuptools, pip, wheel...done.
Virtualenv location: D:\Python\virtualenv\envs\fisher-X6ixkNQM
Creating a Pipfile for this project…
Pipfile.lock not found, creating…
Locking [dev-packages] dependencies…
Locking [packages] dependencies…
Updated Pipfile.lock (625834)!
Installing dependencies from Pipfile.lock (625834)…
================================ 0/0 - 00:00:00
To activate this project's virtualenv, run the following: $ pipenv shell 複製代碼
pipenv shell
(退出命令:exit
)Launching subshell in virtual environment. Type 'exit' to return.
Microsoft Windows [版本 10.0.16299.309]
(c) 2017 Microsoft Corporation。保留全部權利。
複製代碼
pipenv install flask
Installing flask…
Collecting flask
Downloading Flask-0.12.2-py2.py3-none-any.whl (83kB)
Collecting click>=2.0 (from flask)
Downloading click-6.7-py2.py3-none-any.whl (71kB)
Collecting Jinja2>=2.4 (from flask)
Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
Collecting itsdangerous>=0.21 (from flask)
Downloading itsdangerous-0.24.tar.gz (46kB)
Collecting Werkzeug>=0.7 (from flask)
Downloading Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask)
Downloading MarkupSafe-1.0.tar.gz
Building wheels for collected packages: itsdangerous, MarkupSafe
Running setup.py bdist_wheel for itsdangerous: started
Running setup.py bdist_wheel for itsdangerous: finished with status 'done'
Stored in directory: C:\Users\儲勁鬆\AppData\Local\pip\Cache\wheels\fc\a8\66\24d655233c757e178d45dea2de22a04c6d92766abfb741129a
Running setup.py bdist_wheel for MarkupSafe: started
Running setup.py bdist_wheel for MarkupSafe: finished with status 'done'
Stored in directory: C:\Users\儲勁鬆\AppData\Local\pip\Cache\wheels\88\a7\30\e39a54a87bcbe25308fa3ca64e8ddc75d9b3e5afa21ee32d57
Successfully built itsdangerous MarkupSafe
Installing collected packages: click, MarkupSafe, Jinja2, itsdangerous, Werkzeug, flask
Successfully installed Jinja2-2.10 MarkupSafe-1.0 Werkzeug-0.14.1 click-6.7 flask-0.12.2 itsdangerous-0.24
Adding flask to Pipfile's [packages]… Pipfile.lock (625834) out of date, updating to (011179)… Locking [dev-packages] dependencies… Locking [packages] dependencies… Updated Pipfile.lock (011179)! Installing dependencies from Pipfile.lock (011179)… ================================ 6/6 - 00:00:01 複製代碼
flask
命令查看是否安裝成功,或者輸入 pip list
查看該虛擬環境下全部安裝的包github
鏈接