ImportError:没有名为torch.distributed的模块
File "train.py", line 4, in <module>
import torch.distributed as dist
ImportError: No module named torch.distributed
我安装了CUDA和cuDNN,然后创建了env,安装了pip3,安装了火炬火炬,但是出错了。
我们转而使用python3,而不是使用python2,但是当我们试图通过python3运行ansible-playbook时,
python3 /usr/bin/ansible-playbook .....
Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 34, in <module>
from ansible import context
ModuleNotFoundError: No module named 'ansible'
正如我
我试着通过pip安装一个包裹。然而,pip的每一次使用都需要一个互联网连接(甚至下面的升级),它会导致ReadTimeoutError。我正在处理另一个系统的基本Dockerfile如下:
FROM python:3-alpine
RUN wget google.com
RUN pip3 -V
RUN pip3 install --upgrade pip
第二行显示我有一个互联网连接。输出:
Connecting to google.com (216.58.206.14:80)
Connecting to www.google.com (108.177.126.103:80)
index.ht
我正在尝试使buildozer工作(请参阅这里)。
当我按照这里的指令安装aidl时,我会得到以下错误
Could not find a version that satisfies the requirement aidl (from versions: )
No matching distribution found for aidl
有人能帮忙吗?
我目前安装了Arch,我希望安装用于wxPython的Spyder3模块。我在用pip安装它时遇到了问题。因此,我下载了wxpython tarball。以下是我所遵循的步骤:
cd Downloads sudo tar -xvzf wxPython-4.0.6.tar.gz cd wxpython-4.0.6
在此之后,我想构建setup.py文件,但是我得到了以下错误:
python setup.py build running build WARNING: Building this way assumes that all generated files have been g
当尝试使用pip安装requests或任何东西时,它会收集选项,然后每次都会给我这个错误。我不能使用pip来安装任何东西。
C:\Users\evand>pip3 install requests
Collecting requests
ERROR: Could not install packages due to an EnvironmentError: Could not find a suitable TLS CA certificate bundle, invalid path: path/to/ca-bundle.crt
pip的版本
C:\Users\evand>pi
嘿,我现在正在学习编程,所以如果你需要向我解释什么,那就简单一点,这样我就能理解了。回到O‘’Reilly "Head first Programing using Python“一书中的问题,告诉我下载Python 3.3的Pygame,但它只适用于Windows。我如何在OS X Lion上安装它,或者你知道类似的东西吗?