我跑了这个命令:
pip uninstall wagtail
卸载wagtail:继续(是/否)? ÿ
已成功卸载 鸰
然而,当我跑pip install wagtail
时,我收到以下消息:
root@daap:/usr/lib/python2.7# pip install wagtail
Requirement already satisfied (use --upgrade to upgrade): wagtail in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): Django<1.11,>=1.8.1 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): django-modelcluster<4.0,>=3.0 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): django-taggit<1.0,>=0.20 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): django-treebeard<5.0,>=3.0 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): djangorestframework>=3.1.3 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): Pillow>=2.6.1 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4>=4.5.1 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): html5lib<1,>=0.999 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): Unidecode>=0.04.14 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): Willow<0.5,>=0.4 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): requests<3.0,>=2.11.1 in /usr/local/lib/python2.7/dist-packages (from wagtail)
Requirement already satisfied (use --upgrade to upgrade): pytz>=2015.2 in /usr/local/lib/python2.7/dist-packages (from django-modelcluster<4.0,>=3.0->wagtail)
Requirement already satisfied (use --upgrade to upgrade): six in /usr/local/lib/python2.7/dist-packages (from html5lib<1,>=0.999->wagtail)
Cleaning up...
我遇到问题,当我运行我的django应用程序时没有发现wagtail,所以我想完全卸载它,然后再次安装它。
为什么我运行pip uninstall wagtail
时没有删除它?我怎样才能完全删除它?感谢
答案 0 :(得分:2)
pip
缓存python包。如果您不想使用缓存,则应使用--no-cache-dir
。
pip --no-cache-dir install -I wagtail
另见https://pip.pypa.io/en/stable/reference/pip_install/#caching
缓存目录也写在此URL中:)
答案 1 :(得分:0)
source your-venv\bin\activate
pip install wagtail, django
要卸载,请确保已激活您的venv。只是在dir并不意味着你在virtualenv里面。