我正在嘗試通過pip安裝this package。當我運行pip install flask-googlemaps
時,我看到了通常的輸出,並且軟件包已成功安裝,還有一些依賴關係。如果我運行pip freeze
,我會看到列出的所有依賴關係,但不是包本身。爲什麼?爲什麼沒有pip安裝的包在pip freeze中顯示?
下面是我的過程的全面細分。我測試了一個新的virtualenv,以確保我不只是想念它。
$ mkvirtualenv test1
New python executable in /Users/me/.virtualenvs/test1/bin/python2.7 Also creating executable in /Users/me/.virtualenvs/test1/bin/python Installing setuptools, pip, wheel...done. virtualenvwrapper.user_scripts creating /Users/me/.virtualenvs/test1/bin/predeactivate virtualenvwrapper.user_scripts creating /Users/me/.virtualenvs/test1/bin/postdeactivate virtualenvwrapper.user_scripts creating /Users/me/.virtualenvs/test1/bin/preactivate virtualenvwrapper.user_scripts creating /Users/me/.virtualenvs/test1/bin/postactivate virtualenvwrapper.user_scripts creating /Users/me/.virtualenvs/test1/bin/get_env_details
$ pip freeze
(no results, because nothing has been installed yet)
$ pip install flask-googlemaps
Collecting flask-googlemaps Using cached Flask_GoogleMaps-0.2.5-py2.py3-none-any.whl Collecting flask (from flask-googlemaps) Using cached Flask-0.12.2-py2.py3-none-any.whl Collecting Werkzeug>=0.7 (from flask->flask-googlemaps) Using cached Werkzeug-0.12.2-py2.py3-none-any.whl Collecting Jinja2>=2.4 (from flask->flask-googlemaps) Using cached Jinja2-2.9.6-py2.py3-none-any.whl Collecting click>=2.0 (from flask->flask-googlemaps) Using cached click-6.7-py2.py3-none-any.whl Collecting itsdangerous>=0.21 (from flask->flask-googlemaps) Collecting MarkupSafe>=0.23 (from Jinja2>=2.4->flask->flask-googlemaps) Installing collected packages: Werkzeug, MarkupSafe, Jinja2, click, itsdangerous, flask, flask-googlemaps Successfully installed Jinja2-2.9.6 MarkupSafe-1.0 Werkzeug-0.12.2 click-6.7 flask-0.12.2 flask-googlemaps itsdangerous-0.24
$ pip freeze
click==6.7 Flask==0.12.2 itsdangerous==0.24 Jinja2==2.9.6 MarkupSafe==1.0 Werkzeug==0.12.2
注意燒瓶Google地圖不包括在所述第二籽冷凍輸出,但其所有相關的是。
更奇怪的是我現在可以完全使用這個軟件包了。它已安裝,它不會顯示在pip凍結輸出中。
- 尼斯找到!謝謝您的幫助。 –