我有一个requirements.txt
包含所有依赖项的文件,但未正确处理:
一段时间后pip install -r requirements.txt
,我得到以下内容pip freeze
:
argparse==1.2.1
wsgiref==0.1.2
Run Code Online (Sandbox Code Playgroud)
但是当我做一个pip安装:
numpy==1.6.2
Django==1.4.2
django-tastypie==0.9.14
pyes==0.19.1
Run Code Online (Sandbox Code Playgroud)
然后运行我的pip install -r requirements.txt
.然后它工作.
这是我的requirements.txt包含:
numpy==1.6.2
Django==1.4.2
django-tastypie==0.9.14
urllib3==1.5
pyes==0.19.1
BeautifulSoup==3.2.1
MySQL-python==1.2.3
IMAPClient==0.9.1
Jinja2==2.6
Pillow==2.0.0
amqp==1.0.9
anyjson==0.3.3
billiard==2.7.3.22
celery==3.0.16
django-celery==3.0.11
django-compressor==1.3
django-concurrency
django-extensions==1.1.1
https://codeload.github.com/toastdriven/django-haystack/zip/master#egg=django-haystack
django-model-utils==1.2.0
django-multiforloop==0.2.1
django-social-auth==0.7.22
html5lib==0.95
httplib2==0.8
kombu==2.5.7
logilab-astng==0.24.2
logilab-common==0.59.0
oauth2==1.5.211
ordereddict==1.1
pycrypto==2.6
pylint==0.27.0
python-dateutil==1.5
python-openid==2.2.5
pytz==2013b
six==1.3.0
unittest2==0.5.1
wsgiref==0.1.2
xlrd==0.9.0
xmltodict==0.4.6
django-storages>=1.1.8
boto==2.8.0
lxml==3.1.0
pyelasticsearch==0.4.1
django-tastypie-elasticsearch==0.1.0
Run Code Online (Sandbox Code Playgroud)
有人会有解决方案吗?
我正在尝试使用带有箭头功能的matploblib绘制一些箭头.但我想使用数组单独选择每个箭头的长度.
http://matplotlib.sourceforge.net/api/pyplot_api.html#matplotlib.pyplot.quiver http://matplotlib.sourceforge.net/examples/pylab_examples/quiver_demo.html
在这些演示和文档,这是表明你可以按比例改变秤的单位(X,Y,宽度,高度,XY,英寸,......),有没有办法来定义一个规模为每个箭头?
我想知道Python中是否有任何"官方"函数/库用于IMAP4 UTF-7文件夹路径编码.
在imapInstance.list()
我得到以下路径IMAP UTF-7编码:
'(\\HasNoChildren) "." "[Mails].Test&AOk-"',
Run Code Online (Sandbox Code Playgroud)
如果我执行以下编码:
(u"[Mails].Testé").encode('utf-7')
Run Code Online (Sandbox Code Playgroud)
我明白了:
'[Mails].Test+AOk-'
Run Code Online (Sandbox Code Playgroud)
哪个是UTF-7而不是IMAP UTF-7编码.Test+AOk-
而不是Test&AOk-
我需要一个官方函数或库来获得IMAP UTF-7编码版本.