我在Manjaro stable上运行一个zsh shell,其中Conda(4.10.1)虚拟环境由Python3.9.2激活,当我试图通过pip install
安装一个包时,它有时会返回一条关于未解析依赖项的错误消息。例如,当我尝试安装Tensorflow时:
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pyxnat 1.4 requires future>=0.16, which is not installed.
nipype 1.6.0 requires filelock>=3.0.0, which is not installed.
我使用conda install pip
和which pip
返回值安装了pip:
/home/gova/anaconda3/envs/drmdef/bin/pip
当我试图通过shell导入Tensorflow时,我得到了这样的回应:
Python 3.9.2 | packaged by conda-forge | (default, Feb 21 2021, 05:02:46)
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow
2021-04-17 18:21:18.145981: W tensorflow/stream_executor/platform/default/dso_loader.cc:60] Could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: No such file or directory
2021-04-17 18:21:18.146004: I tensorflow/stream_executor/cuda/cudart_stub.cc:29] Ignore above cudart dlerror if you do not have a GPU set up on your machine.
INFO:tensorflow:Enabling eager execution
INFO:tensorflow:Enabling v2 tensorshape
INFO:tensorflow:Enabling resource variables
INFO:tensorflow:Enabling tensor equality
INFO:tensorflow:Enabling control flow v2
>>>
这意味着TensorFlow确实已安装并可导入。这些错误消息不是问题,因为我还没有开始为TensorFlow配置系统。但任何与此相关的事情都会有所帮助
为什么我会看到错误消息?为什么pip不能解决所有未满足的依赖关系? 如何解决此问题?
目前没有回答
相关问题 更多 >
编程相关推荐