我尝试通过从此处(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列表,我会得到那个旧版本。
(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不会更新版本?