安装Anaconda后无法安装Python模块 [英] Cannot Install Python Modules after Installing Anaconda

查看:569
本文介绍了安装Anaconda后无法安装Python模块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

[新说明:我无法通过binstar或anaconda安装.为什么我不能在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?]

我在Windows机器上安装了Python 2.7.另外,我最近刚刚安装了Anaconda.

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

我刚尝试为我的Python安装安装一个新模块.我在一个解压后的文件夹中为python模块打开了一个命令提示符,然后运行:

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安装

python setup.py install

但是,我在构建行遇到错误:

However, I experienced an error at build line:

构建"pyodbc"扩展名

building 'pyodbc' extension

最终错误行显示为:

错误:命令'gcc'失败,退出状态为1

error: command 'gcc' failed with exit status 1

它似乎已寻找并没有找到多个文件或目录.例如,我收到几行(7)错误,例如:

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:错误:/Wall:没有这样的文件或目录

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

我有一个很疯狂的预感,即安装Anaconda会使我的PATH变量(或其他东西)不安,但这只是预感.

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

非常感谢.

推荐答案

您可以尝试找到在 binstar 上构建了此软件包的人. a>,这是Anaconda的软件包托管站点.

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

我发现 https://binstar.org/dhirschfeld/pyodbc/3.0.7/文件,如果您使用的是64位Windows,则可能对您有用.您可以尝试conda install -c https://conda.binstar.org/dhirschfeld pyodbc.

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.

这篇关于安装Anaconda后无法安装Python模块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆