[英]Failed to install a custom python module in pythonanywhere
So I'm new in pythoneverywhere. 所以我是pythoneverywhere的新人。 I was trying to install a custom python module ( dryscrape ) for myself but failed.
我试图为自己安装一个自定义python模块( dryscrape )但失败了。 I did not load it into my file system in pythonanywhere.
我没有将它加载到pythonanywhere中的文件系统中。 I use python 2.6 So, what's wrong/missing:
我使用python 2.6所以,有什么错误/缺失:
~ $ pip2.6 install --igorsavinkin dryscrape
Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...
no such option: --igorsavinkin
~ $ pip2.6 install dryscrape
Collecting dryscrape
Could not find any downloads that satisfy the requirement dryscrape
No distributions at all found for dryscrape
tryed to include it from github but failed too 试图从github包含它但也失败了
~ $ pip2.6 install https://github.com/niklasb/dryscrape
Collecting https://github.com/niklasb/dryscrape
Downloading https://github.com/niklasb/dryscrape
| 45kB 14.1MB/s
Cannot unpack file /tmp/pip-53bAWe-unpack/dryscrape (downloaded from /tmp/pip-4KCbIJ-build,
content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-4KCbIJ-build
Should i download it to file system first? 我应该先将它下载到文件系统吗?
Note that dryscrape is written for Python 2.7+ I successfully installed dryscrape
in pythonanywhere
: 注意2.7+我成功地安装了dryscrape为Python编写
dryscrape
在pythonanywhere
:
git clone https://github.com/niklasb/dryscrape.git dryscrape
cd dryscrape
#try this in virtualenv
virtualenv env
source env/bin/activate
pip install -r requirements.txt
Then install dryscrape 然后安装dryscrape
python setup.py install
From doc http://dryscrape.readthedocs.org/en/latest/installation.html 来自doc http://dryscrape.readthedocs.org/en/latest/installation.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.