anaconda安装python模块,安装Anaconda后无法安装Python模块

[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.

解决方案

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值