簡體   English   中英

Python 3 Windows 10 pip安裝錯誤

[英]Python 3 windows 10 pip install error

嗨,我在Windows 10上進行了anconda 3的全新安裝。但是當我從shell運行一些pip的安裝命令時,例如“ pip install pysam”,我收到了該錯誤消息:

building 'pysam.libchtslib' extension
error: Unable to find vcvarsall.bat

    ----------------------------------------
Command "C:\Users\rando\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\rando\\AppData\\Local\\Temp\\pip-build-dqrfhm5k\\pysam\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\rando\AppData\Local\Temp\pip-b5ng0_7u-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\rando\AppData\Local\Temp\pip-build-dqrfhm5k\pysam\

我看到了很多關於此的文章,並且我知道這可能是視覺c ++問題。我重新安裝了它,還安裝了適用於Python的Microsoft Visual C ++編譯器,但情況沒有改變。我該怎么辦? 謝謝你的幫助!

看看Anaconda常見問題解答 主題如何編譯CPython? 告訴您所需的VC ++版本。 因此,請為您的python版本安裝Visual Studio版本。

然后,您必須在開始菜單中找到Visual Studio命令提示符 (確保使用64位版本)。 從那里您應該能夠運行vcvarsall.bat,然后最終安裝該軟件包。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM