aptitude search packaging
i packaging-dev - convenient tools to develop packages
现在安装packaging-dev
debian8@hwy:~$ sudo apt-get install packaging-dev
debian8@hwy:~$ sudo aptitude search cryptography
i A python-cryptography - Python library exposing cryptographic recipes and primitives (Python 2)
p python-cryptography-doc - Python library exposing cryptographic recipes and primitives (documentation)
p python-cryptography-vectors - Test vectors for python-cryptography (Python 2)
p python3-cryptography - Python library exposing cryptographic recipes and primitives (Python 3)
p python3-cryptography-vectors - Test vectors for python-cryptography (Python 3)
现在安装python-cryptography
debian8@hwy:~$ sudo apt-get install python-cryptography
pip3 install scrapy
Traceback (most recent call last):
File "/usr/bin/pip3", line 5, in <module>
from pkg_resources import load_entry_point
File "/usr/local/lib/python3.4/dist-packages/pkg_resources/__init__.py", line 70, in <module>
import packaging.version
ImportError: No module named 'packaging'
已经安装了pakaging,为什么无法导入?
答案 0 :(得分:0)
ggplot(data.frame(x = c(-4, 10)), aes(x = x)) +
stat_function(fun = dt, args = list(df = 1.5))
我可以使用Collecting scrapy
Downloading Scrapy-1.3.0-py2.py3-none-any.whl (239kB)
100% |████████████████████████████████| 245kB 1.1MB/s
Collecting PyDispatcher>=2.0.5 (from scrapy)
Downloading PyDispatcher-2.0.5.tar.gz
Requirement already satisfied: Twisted>=13.1.0 in /usr/lib/python2.7/dist-packages (from scrapy)
Requirement already satisfied: lxml in /usr/lib/python2.7/dist-packages (from scrapy)
Requirement already satisfied: service-identity in /usr/lib/python2.7/dist-packages (from scrapy)
Requirement already satisfied: pyOpenSSL in /usr/lib/python2.7/dist-packages (from scrapy)
Collecting w3lib>=1.15.0 (from scrapy)
Downloading w3lib-1.16.0-py2.py3-none-any.whl
Collecting parsel>=0.9.5 (from scrapy)
Downloading parsel-1.1.0-py2.py3-none-any.whl
Collecting cssselect>=0.9 (from scrapy)
Downloading cssselect-1.0.1-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5.2 in /usr/local/lib/python2.7/dist-packages (from scrapy)
Collecting queuelib (from scrapy)
Downloading queuelib-1.4.2-py2.py3-none-any.whl
Requirement already satisfied: cryptography>=0.7 in /usr/lib/python2.7/dist-packages (from pyOpenSSL->scrapy)
Installing collected packages: PyDispatcher, w3lib, cssselect, parsel, queuelib, scrapy
Running setup.py install for PyDispatcher ... done
Successfully installed PyDispatcher-2.0.5 cssselect-1.0.1 parsel-1.1.0 queuelib-1.4.2 scrapy-1.3.0 w3lib-1.16.0
答案 1 :(得分:0)
通过编译和
安装python3.6pip3.6 install scrapy
to sovle issues relate dto install srapy
to sovle issues relate dto install srapy