python - 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 不更新版本?
解决方案
推荐阅读
- video - 用于颜色转换的 OpenImageI/O python 绑定失败
- tsql - T-SQL Pivot 关键字“FOR”附近的语法不正确
- ruby-on-rails - 如何在rails中添加版本字段(1.0.1)
- paypal - 我正在使用 paypal rest api 的计费计划,我需要知道 api 计费计划是否会影响
- angularjs - AngularJS - 循环中的多个 $http 递归调用
- rest - Bitbucket 服务器:REST API 仅返回公共存储库,不返回私有存储库
- autodesk - Revit 插件(未出现在 Revit 中)
- c - 从 C 中的 bash 创建一个 AST
- c - 更换开关盒中的 goto
- c# - 嵌套列表上的 Linq c#