簡體   English   中英

在Python 3.4上安裝了Scrapy(不兼容),安裝了Python 2.7並且無法安裝Scrapy for Python 2

[英]Installed Scrapy on Python 3.4 (not compatible), installed Python 2.7 and can't install Scrapy for Python 2

使用Windows 8.我安裝了pywin32,然后安裝了Microsoft Visual C ++ Studio 2010,然后安裝了Scrapy。

后來我發現Scrapy與Python 3不兼容。我覺得愚蠢......

之后我讀了並安裝了Python 2.7。 我似乎無法使用“pip install Scrapy”或“easy_install Scrapy”安裝Scrapy。 如果我使用Python27文件夾中的那些命令,它會告訴我它已存在於C:\\ Python34文件夾中。

我嘗試更改注冊表項以更改命令提示符使用的Python的默認版本,但由於某種原因這不起作用。 我確實檢查如下。

C:\>ftype|find /I "python"
Python.CompiledFile="C:\Python27\python.exe" "%1" %*
Python.File="C:\Python27\python.exe" "%1" %*
Python.NoConFile="C:\Python27\pythonw.exe" "%1" %*

你需要使用pip for python2。 如果您沒有為python 2安裝它,請使用get-pip.py安裝它,下載該文件並運行:

python get-pip.py

每個python安裝都需要它自己的pip。

暫無
暫無

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

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