PyopenSSL und scrapy Installation schlägt fehl, in Python 27, Win 64 Bit
Mein Paket installieren (mit PIP & Easyinstall) nicht jedes mal wenn ich installieren PyopenSSL
und Scrapy
auf Python 2.7. OS: Win 8.1 64 Bit.
Den Fehler details sind unten:
C:\Users\<Benutzername>\AppData\Local\Programs\Common\Microsoft\Visual C++ für Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD - /W3 - /GS- /DNDEBUG -Ic:\python27\include -Ic:\python27\PC /Tcbuild\temp.win-amd64-2.7\Release_openssl.c /Fobuild\temp.win-amd64-2.7\Release\build\temp.win-amd64-2.7\Release_openssl.obj _openssl.c
erstellen\temp.win-amd64-2.7\Release_openssl.c(429) : schwerwiegender Fehler C1083: kann Nicht geöffnet Includedatei: 'openssl/opensslv.h': No such file or directory-Fehler: der Befehl 'C:\Users\Suraj\AppData\Local\Programs\Common\Microsoft\Visual C++ für Python\9.0\VC\Bin\amd64\cl.exe' failed with exit status 2
Exception Daten:
Traceback (most recent call last):
Datei "c:\python27\lib\site-packages\pip\basecommand.py", line 211, in main
status = selbst.laufen(Optionen, args)
Datei "c:\python27\lib\site-packages\pip\commands\install.py", line 311, in laufen
root=Optionen.root_path,
Datei "c:\python27\lib\site-packages\pip\req\req_set.py", Zeile 646, die in installieren von Kwargs
Datei "c:\python27\lib\site-packages\pip\req\req_install.py", line 852, in installieren
show_stdout=False,
Datei "c:\python27\lib\site-packages\pip\utils\__init__.py" Linie 733, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Befehl "c:\python27\python.exe -c "import-setuptools, tokenize;__file__='c:\\users\\suraj\\appdata\\local\\temp\\pip-build-ajzmpr\\cryptography\\setup.py';exec(compile(getattr(tokenize, 'open', offen)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\suraj\appdata\local\temp\pip-kppgmc-record\install-record.txt --single-version-extern-verwaltete --compile" - Fehler mit Fehler code 1 in c:\users\suraj\appdata\local\temp\pip-build-ajzmpr\cryptography.
Fehlersuche bisher:
1.Der Fehler ist der gleiche mit Easyinstall und Pip
2. Geändert, die Protokolle zu meldungsstufen.
3.Überprüft mehrere Stackoverflow links, noch keine luck:
http://stackoverflow.com/questions/37951303/fatal-error-c1083-cannot-open-include-file-openssl-opensslv-h
Installierte Programme auf Windows
Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030-Microsoft Corporation 07/10/2014 17.3 MB 11.0.61030.0
Microsoft Visual C++ - Compiler-Paket für Python 2.7 Microsoft Corporation 26/07/2016 380 MB 9.0.1.30729
Vielen Dank im Voraus
cryptography
empfiehlt die Verwendungpip
. Stellen Sie sicher, installieren Sie die Rad-Paket, benutzen Sie eine aktuelle pip, und wahrscheinlich--no-cache-dir
und--only-binary
- Danke für deine Antwort Paul, ich bin versucht, Pip install <Paketname>, in diesem Fall : PyopenSSL - & scapy.
- Verwenden
pip install --no-cache-dir --only-binary cryptography
(es wird installiert PyOpenSSL-Abhängigkeit), und dannpip install scrapy
- Danke Paul.. Das ist, was funktioniert in meinem Fall pip install --only-binary :alle Kryptografie und dann pip installieren scrapy.
- Ihre zeitnahe Antwort wird sehr geschätzt.
- schlechte Formatierung, stackoverflow.com/editing-help helfen
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich hatte das gleiche Problem. Hier ist was ich getan habe:
Installieren Kryptographie zuerst auf Ihren computer, indem Sie folgenden link: https://cryptography.io/en/latest/installation/#on-windows
wenn Sie nicht über openSSL auf Ihrem computer installiert der oben genannten Seite wird der link für das. Fügen Sie die environment-Variablen wie oben im link zu installieren und versuchen Sie es erneut.