简体   繁体   English

使用 Anaconda 安装软件包的问题

[英]Problems with installing packages with Anaconda

I tried installing pandas_datareader in Anaconda using conda install -c anaconda pandas-datareader .我尝试使用pandas_datareader conda install -c anaconda pandas-datareader在 Anaconda 中conda install -c anaconda pandas-datareader It gives me this result:它给了我这个结果:

Traceback (most recent call last):
    File "C:\Users\Peter\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'pywin32_bootstrap'

Remainder of file ignored
Error processing line 7 of C:\Users\Peter\Anaconda3\lib\site-packages\pywin32.pth:

  Traceback (most recent call last):
    File "C:\Users\Peter\Anaconda3\lib\site.py", line 168, in addpackage
      exec(line)
    File "<string>", line 1, in <module>
  ModuleNotFoundError: No module named 'pywin32_bootstrap'

Remainder of file ignored

Okay, bad luck I thought, and I tried installing something else (plotly).好吧,我认为运气不好,我尝试安装其他东西(阴谋)。 And this gave me exactly the same result.这给了我完全相同的结果。

Try:尝试:

conda remove [-c anaconda] pywin32
conda install -c anaconda pywin32

Code in brakets is not necessary.刹车中的代码不是必需的。

This should reinstall pywin32.这应该重新安装 pywin32。 And go for another try.然后再试一次。 It worked for me using pip.它使用 pip 对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM