Python中文
首页
教程
问答
标签
搜索
登录
注册
为什么是设置.py显然成功地安装了我的软件包,但实际上没有安装一个依赖项?
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>以下是说明问题的终端会话:</p> <pre><code>$ pip install scrappy --user Requirement already satisfied (use --upgrade to upgrade): scrappy in /home/louist/Documents/Python/Scrappy Downloading/unpacking guessit (from scrappy) Downloading guessit-0.5.3.tar.gz (45Kb): 45Kb downloaded Running setup.py egg_info for package guessit Downloading/unpacking tvdb-api (from scrappy) Downloading tvdb_api-1.8.2.tar.gz Running setup.py egg_info for package tvdb-api Downloading/unpacking hachoir-metadata (from scrappy) Downloading hachoir-metadata-1.3.3.tar.gz (52Kb): 52Kb downloaded Running setup.py egg_info for package hachoir-metadata Warning: unable to recompile dialog.ui to dialog_ui.py using pyuic4 (use command "-c egg_info --egg-base pip-egg-info --disable-qt" to disable this warning) Downloading/unpacking hachoir-core (from scrappy) Downloading hachoir-core-1.3.3.tar.gz (91Kb): 91Kb downloaded Running setup.py egg_info for package hachoir-core Downloading/unpacking hachoir-parser (from scrappy) Downloading hachoir-parser-1.3.4.tar.gz (359Kb): 359Kb downloaded Running setup.py egg_info for package hachoir-parser warning: no files found matching 'metadata_csv.py' Installing collected packages: guessit, tvdb-api, hachoir-metadata, hachoir-core, hachoir-parser Running setup.py install for guessit Running setup.py install for tvdb-api Running setup.py install for hachoir-metadata Warning: unable to recompile dialog.ui to dialog_ui.py using pyuic4 (use command "-c install --single-version-externally-managed --record /tmp/pip-3OxvBD-record/install-record.txt --install-headers /home/louist/.virtualenvs/test/include/site/python2.7 --user --disable-qt" to disable this warning) changing mode of build/scripts-2.7/hachoir-metadata from 664 to 775 changing mode of build/scripts-2.7/hachoir-metadata-gtk from 664 to 775 changing mode of build/scripts-2.7/hachoir-metadata-qt from 664 to 775 deleting hachoir_metadata.egg-info/requires.txt changing mode of /home/louist/.local/bin/hachoir-metadata to 775 changing mode of /home/louist/.local/bin/hachoir-metadata-gtk to 775 changing mode of /home/louist/.local/bin/hachoir-metadata-qt to 775 Running setup.py install for hachoir-core Running setup.py install for hachoir-parser deleting hachoir_parser.egg-info/requires.txt warning: no files found matching 'metadata_csv.py' Successfully installed guessit tvdb-api hachoir-metadata hachoir-core hachoir-parser Cleaning up... (test)louist@ltpc:~/Documents/Python/Scrappy$ python Python 2.7.3 (default, Sep 26 2012, 21:51:14) [GCC 4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import scrappy.core as scrappy Traceback (most recent call last): File "<stdin>", line 1, in <module> File "scrappy/core.py", line 10, in <module> import guessit ImportError: No module named guessit </code></pre> <p>简而言之,我做了以下事情:</p> <ol> <li>用<code>mkvirtualenv test</code>启动一个virtualenv</li> <li>尝试安装我正在通过<code>pip install scrappy --user</code>开发的包</li> <li>启动python终端,然后尝试导入<code>scrappy.core</code></li> </ol> <p>这是我的设置.py文件:</p> ^{pr2}$ <p>有什么想法吗?在</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>默认情况下,新的virtualenv不包括安装在其外部的包(创建时没有<code> system-site-packages</code>选项)。因此,<code>test</code>virtualenv看不到安装到<code>~/.local</code>的包(由于<code> user</code>选项)。在</p> <p>创建带有系统站点包选项的virtualenv选项,或者在激活的virtualenv中安装时不使用用户。在</p>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
plt.savefig不会覆盖现有文件
10 回答
plt.savefig不保存图像
10 回答
plt.savefig在jupyter笔记本中不起作用
7 回答
plt.savefig在从另一个fi调用时停止工作
8 回答
plt.savefig在调用plt.show之前保存空数字
4 回答
plt.save不创建png文件
5 回答
plt.scatter overlay分类数据帧列
4 回答
Plt.Scatter:如何添加title、xlabel和ylab
1 回答
plt.scatter()绘图与Matplotlib中的plt.plot()绘图类似
5 回答
plt.scatter错误'NoneType'对象在成功运行后没有属性'sqrt'
5 回答
plt.set_title()中的标题字符串有误
6 回答
plt.show()
3 回答
plt.show()不在Jupyter笔记本上渲染任何内容
1 回答
plt.show()不打印plt.plot only plt.scatter
5 回答
plt.show()不显示三维散射图像
6 回答
plt.show()不显示任何内容
8 回答
plt.show()不显示数据,而是保留它供下一个图表使用(spyder)
8 回答
plt.show()使终端挂起
6 回答
plt.show()无法使用此代码
4 回答
plt.show()没有打开新的图形风
10 回答