[python] Package install

Pagina: 1
Acties:

Onderwerpen

Vraag


Acties:
  • 0 Henk 'm!

  • Stijnb_
  • Registratie: Oktober 2009
  • Laatst online: 06:07
Beste Tweakers,

Ik heb een python script gemaakt dat werkt op os x.
Nu wil ik deze gebruiken op windows 10 nu moet ik nog enkele package installeren.
Het probleem is wanneer ik het commando pip install ********.
Ook wanneer ik een andere package installeer kom ik altijd op dezelfde fout code terecht.

code:
1
error: command 'C:\\Users\\NAS\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2


Visual C++ heb ik al geïnstalleerd en het bestand bestaat maar kom altijd op dezelfde fout terecht.
Heb al wat info opgezocht op internet maar kom er niet veel verder mee.

Alle reacties


Acties:
  • 0 Henk 'm!

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 09-09 13:58

NMe

Quia Ego Sic Dico.

En geen van de antwoorden bij [google="cl.exe failed with exit status 2"] helpt je verder?

Sowieso zie ik daar dat de gemiddelde melding veel uitgebreider is dan alleen die ene regel die je copy/pastet. Krijg je verder echt helemaal geen informatie?

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Acties:
  • 0 Henk 'm!

  • Stijnb_
  • Registratie: Oktober 2009
  • Laatst online: 06:07
code:
1
2
3
4
  C:\Users\NAS\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 "-IC:\Program Files (x86)\MySQL\MySQL Connector C 6.0.2\include" -Ic:\python27\include -Ic:\python27\PC /Tc_mysql.c /Fobuild\temp.win32-2.7\Release\_mysql.obj /Zl
  _mysql.c
  _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory
  error: command 'C:\\Users\\NAS\\AppData\\Local\\Programs\\Common\\Microsoft\\Visual C++ for Python\\9.0\\VC\\Bin\\cl.exe' failed with exit status 2


Dit is de volledige error dat ik krijg.

Acties:
  • +1 Henk 'm!

  • NMe
  • Registratie: Februari 2004
  • Laatst online: 09-09 13:58

NMe

Quia Ego Sic Dico.

Dat is exact hetzelfde probleem als in het eerste resultaat van de zoekquery die ik linkte: https://msdn.microsoft.co...2ccy3wt%28v=vs.80%29.aspx

'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.


Acties:
  • 0 Henk 'm!

  • ValHallASW
  • Registratie: Februari 2003
  • Niet online
Installer van pypi: https://pypi.python.org/pypi/MySQL-python/1.2.5
of je kunt de wheel uit Gohlkes repository gebruiken: http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python

Het is ongetwijfeld mogelijk om correct aan mysql te linken in Windows, maar tenzij je aan mysql-python wilt werken zou ik zou er niet teveel moeite in steken.

[ Voor 11% gewijzigd door ValHallASW op 18-01-2016 15:28 ]