Unable to install pyodbc

寵の児 提交于 2019-12-25 01:21:44

问题


I am using python 3.3.0 .. Within this package C:\Python34\Scripts is my pip and I have added this path to my system and user environment variable PATH the link to this pip folder,I have installed Visual C++ 2010 but i don't know what needs to be done once it is installed if or not i need to configure something, yet when I do :

C:\Python33\Scripts>pip install https://pyodbc.googlecode.com/files/pyodbc-3.0.7.zip

It gives me the following error:

This is what stackoverflow editor has changed it to :

Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe "  "C:\Python33\Scripts\pip.exe" install
https://pyodbc.googlecode.com/files/pyo dbc-3.0.7.zip'

C:\Python33\Scripts>pip 
Fatal error in launcher: Unable to create process using
'"C:\Python33\python.exe " "C:\Python33\Scripts\pip.exe" '

And this is the actual error that i see at console:

ValueError: ['path']

----------------------------------------
Command "C:\Python33\python.EXE -c "import setuptools, tokenize;__file__='c

\users\elyon\appdata\local\temp\pip-inh3nq-build\setup.py';exec(compi e(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), __fil __, 'exec'))" install --record c:\users\elyon\appdata\local\temp\pip-x45j1j- ecord\install-record.txt --single-version-externally-managed --compile" failed ith error code 1 in c:\users\elyon\appdata\local\temp\pip-inh3nq-build


回答1:


Since you're on Windows with Python 3.3, the easiest way to install pyodbc is to use the provided installers.

You should then be able to manage future upgrades using pip if you so desire.

C:\Python33\Scripts> .\pip.exe install --upgrade --allow-external pyodbc --allow-unverified pyodbc pyodbc 

Requirement already up-to-date: pyodbc in c:\python33\lib\site-packages



来源:https://stackoverflow.com/questions/28031311/unable-to-install-pyodbc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!