首页 > 解决方案 > conda 没有显示更新的包

问题描述

我试图通过从这里下载文件(https://anaconda.org/anaconda/pyhive/files?sort=basename&sort_order=asc)在未连接到互联网的服务器上安装 pyhive

问题是该软件包似乎已安装,但是当我安装时,conda list | grep -i hive我得到了列出的软件包的旧版本。

下面是我的终端输出

(base) raemon@someserver:~$ sudo /opt/anaconda/bin/conda install pyhive-0.6.1-py27_0.tar.bz2
WARNING: The conda.compat module is deprecated and will be removed in a future release.
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
(base) raemon@someserver:~$ conda list | grep -i hive
WARNING: The conda.compat module is deprecated and will be removed in a future release.
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(138): Could not remove or rename /opt/anaconda2/conda-meta/thrift-0.9.3-py27h14c3975_1.json.  Please remove this file manually (you may need to reboot to free file handles)
libarchive                3.3.3                h5d8350f_5
pyhive                    0.1.7                    pypi_0    pypi
python-libarchive-c       2.8                      py27_6

当我尝试通过使用删除 pyhive

sudo conda remove --offline pyhive

我明白了

WARNING: The conda.compat module is deprecated and will be removed in a future release.
Collecting package metadata: done
Solving environment: /
The environment is inconsistent, please check the package plan carefully
The following packages are causing the inconsistency:

  - <unknown>/linux-64::psycopg2==2.7.6.1=py27h1ba5d50_0
  - <unknown>/noarch::pyviz==0.10.3=py_0
  - <unknown>/linux-64::plotly==3.1.1=py37h28b3542_0
  - <unknown>/noarch::holoviews==1.12.3=py_2
  - defaults/linux-64::anaconda==2019.03=py27_0
done

## Package Plan ##

  environment location: /opt/anaconda2

  removed specs:
    - pyhive


The following packages will be REMOVED:

  pyhive-0.6.1-py27_0


Proceed ([y]/n)? y

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

之后,如果我做 conda list 我会得到那个旧版本。

(base) raemon@someserver:~$ conda list | grep -i hive
WARNING: The conda.compat module is deprecated and will be removed in a future release.
WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(138): Could not remove or rename /opt/anaconda2/conda-meta/thrift-0.9.3-py27h14c3975_1.json.  Please remove this file manually (you may need to reboot to free file handles)
libarchive                3.3.3                h5d8350f_5
pyhive                    0.1.7                    pypi_0    pypi
python-libarchive-c       2.8                      py27_6

为什么我在安装 pyhive-0.6.1-py27_0.tar.bz2 时 conda 不更新版本?

标签: pythonpython-2.7anacondaconda

解决方案


推荐阅读