所以我是pythoneverywhere的新人。我试图为自己安装一个自定义的python模块(dryscrape),但失败了。我没有将它加载到pythonanywhere中的文件系统中。我使用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
尝试从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
我应该先将它下载到文件系统吗?
答案 0 :(得分:3)
请注意,dryscrape是为Python 2.7 + 编写的,我在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
然后安装dryscrape
python setup.py install
来自doc http://dryscrape.readthedocs.org/en/latest/installation.html