问题:
我已经安装了水蟒:conda -V
conda 4.4.7
此外,我还使用python3 setup.py install为它安装了许多软件包。
我将它用于从setup.py文件创建的一些包。
现在我想卸载一个包。
我尝试过的:pip uninstall packageName
pip3 uninstall packageName
conda uninstall packageName
它适用于python:检查pip list和pip3 list并且没有这样的包。
错误:
但对于康达我得到了这个:conda uninstall packageName
Solving environment: failed
PackagesNotFoundError: The following packages are missing from the target environment:
- packageName
让我们检查一下:conda list
packageName
我发现conda uninstall和conda remove在这种情况下不起作用。那该怎么办呢?
实际上我在packageName更改了真实的包名,但是如果这个信息很重要,我会添加它。
我的信息:conda info
active environment : None
user config file : /home/masamok4/.condarc
populated config files : /home/masamok4/anaconda3/.condarc
/home/masamok4/.condarc
conda version : 4.4.7
conda-build version : 3.0.27
python version : 3.6.3.final.0
base environment : /home/masamok4/anaconda3 (writable)
channel URLs : https://conda.anaconda.org/conda-forge/linux-64
https://conda.anaconda.org/conda-forge/noarch
https://repo.continuum.io/pkgs/main/linux-64
https://repo.continuum.io/pkgs/main/noarch
https://repo.continuum.io/pkgs/free/linux-64
https://repo.continuum.io/pkgs/free/noarch
https://repo.continuum.io/pkgs/r/linux-64
https://repo.continuum.io/pkgs/r/noarch
https://repo.continuum.io/pkgs/pro/linux-64
https://repo.continuum.io/pkgs/pro/noarch
package cache : /home/masamok4/anaconda3/pkgs
/home/masamok4/.conda/pkgs
envs directories : /home/masamok4/anaconda3/envs
/home/masamok4/.conda/envs
platform : linux-64
user-agent : conda/4.4.7 requests/2.18.4 CPython/3.6.3 Linux/4.4.0-87-generic ubuntu/16.04 glibc/2.23
UID:GID : 1003:1003
netrc file : None
offline mode : False