python找不到以前安装的软件包 [英] python not finding previously installed packages

查看:129
本文介绍了python找不到以前安装的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我在做错事情时遇到了问题.

Hi having a bit of a problem understanding what I've done wrong.

在mac osx 10.8.5上尝试查找以前安装和工作的对象.

On mac osx 10.8.5 trying to find previously installed and working objects.

安装virtualenv后,导入csnd6不再起作用.

Import csnd6 doesn't work anymore after installing virtualenv.

我使用过sudo pip install csnd并运行良好,前几天使用过,我仍然可以在库的2.7站点包中看到它,但是python似乎不在library/python/2.7中/site-packages

I've used sudo pip install csnd and worked fine, I've used it days before, I can still see it in the 2.7 site packages in the library, but python seems not to be looking in library/python/2.7/site-packages

所以我认为这是因为之后安装了虚拟环境.或做一些对我来说不明显的事情.

So I think it's because of installing virtual env afterwards. Or doing something that's not obvious to me.

我现在已经用虚拟环境完成了建议的方法,并且已经成功地使用pip安装了软件包,但是我的问题是pip现在无法识别pypi软件包:

I've done it the suggested way with virtual env now and have successfully installed packages with pip, but my problem is that pip is not recognising pypi packages now:

    Richards-MacBook-Pro-6:~ MouldySoul$ cd documents
    Richards-MacBook-Pro-6:documents MouldySoul$ cd dev
    Richards-MacBook-Pro-6:dev MouldySoul$ source bin/activate
    (DEV)Richards-MacBook-Pro-6:dev MouldySoul$ pip search csnd
    csnd - Python bindings for the Csound API. 
    (DEV)Richards-MacBook-Pro-6:dev MouldySoul$ pip install csnd
    Downloading/unpacking csnd
    Could not find any downloads that satisfy the requirement csnd 
    Some externally hosted files were ignored (use --allow-external csnd to
    allow).
    Cleaning up...
    No distributions at all found for csnd
    Storing debug log for failure in /Users/MouldySoul/.pip/pip.log 

pip搜索可以找到它,但不想安装该模块,并且使用

pip search can find it, but doesn't want to install the module and I haven't had any joy using

pip allow-external csnd 

任何朝着正确方向的观点将不胜感激

Any point in the right direction would be greatly appreciated

推荐答案

如果您想告诉Python在"/library/python/2.7/site-packages"中查找, 只是做些事情:

If you want to tell Python looking in "/library/python/2.7/site-packages", just do some thing:

打开Eclipse->首选-> Pydev->解释器-> Python解释器->库->新文件夹->

Open Eclipse -> Prefereces -> Pydev-> Interpreters-> Python Interpreter -> Libraries -> New Folder ->

然后指向'/library/python/2.7/site-packages'->应用

then point to '/library/python/2.7/site-packages' -> Apply

这篇关于python找不到以前安装的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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