我安装在蟒蛇环境(所谓的“逻辑哲学论”)包pdfminer3k。
我可以加载它。蟒蛇知道它的存在。
$ python
Python 3.7.2 (default, Dec 29 2018, 00:00:04)
[Clang 4.0.1 (tags/RELEASE_401/final)] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pdfminer
>>>
(tractatus) ~/src/tractatus
$ conda list pdfminer
# packages in environment at /anaconda3/envs/tractatus:
#
# Name Version Build Channel
pdfminer3k 1.3.1 pypi_0 pypi
$ ll /anaconda3/envs/tractatus/lib/python3.7/site-packages/pdfminer3k-1.3.1-py3.7.egg/
total 0
drwxr-xr-x 9 wmcneill staff 288 Feb 4 14:12 EGG-INFO
drwxr-xr-x 26 wmcneill staff 832 Feb 4 14:12 pdfminer
现在我想删除它,但蟒蛇的remove
命令无法找到包。
$ conda remove pdfminer
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are missing from the target environment:
- pdfminer
(tractatus) ~/src/tractatus
$ conda remove pdfminer3k
Collecting package metadata: done
Solving environment: failed
PackagesNotFoundError: The following packages are missing from the target environment:
- pdfminer3k
pdfminer也不会出现在此环境中的巨蟒导航UI显示已安装的软件包列表。
这是蟒蛇的错误,还是我做错了什么?
一个可能的解决方法是尝试添加以下行.condarc文件并重新启动您的系统:
channels:
- conda-forge
- anaconda-fusion
- defaults
我想,当你安装pdfminer PKG,您使用的“PIP安装”,所以到时候你想删除它,它不能在任何您畅达ENV文件夹中。
代替
conda remove pdfminer
尝试:
pip uninstall pdfminer
这个对我有用。