Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot Install Python Modules after Installing Anaconda

[New Note: I cannot install through binstar or anaconda. Why can't I install in python, outside of anaconda? Is there a way to get my computer to stop using the anaconda install of python when I don't luanch it specifically through the continuum launcher?]

I have an install of Python 2.7 on a windows machine. I just recently installed Anaconda, in addition.

I just tried to install a new module for my Python install. I opened a command prompt in an unzipped folder for a python module and ran:

python setup.py install

However, I experienced an error at build line:

building 'pyodbc' extension

The ultimate error line reads:

error: command 'gcc' failed with exit status 1

It appears to have looked for and not found several files or directories. For example, I received several (7) lines of error like:

gcc.exe: error: /Wall: No such file or directory

I have a wild hunch that the install of Anaconda is upsetting my PATH variables (or something), but it's just a hunch.

Thanks kindly.

like image 364
user1893148 Avatar asked Jul 11 '26 02:07

user1893148


1 Answers

You could try to find someone who's built this package on binstar, which is the package hosting site for Anaconda.

I found https://binstar.org/dhirschfeld/pyodbc/3.0.7/files, which may work for you if you have 64-bit Windows. You can try conda install -c https://conda.binstar.org/dhirschfeld pyodbc.

like image 110
asmeurer Avatar answered Jul 13 '26 15:07

asmeurer



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!