安装Anaconda后无法安装Python模块

编程入门 行业动态 更新时间:2024-10-12 01:32:33
本文介绍了安装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.

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

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

更多推荐

安装Anaconda后无法安装Python模块

本文发布于:2023-06-11 03:32:28,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/625751.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:模块   Anaconda   Python

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!