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加密技术
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'已经安装了打包,为什么不能导入?
发布于 2017-02-03 22:24:03
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我可以使用sudo pip install scrapy进行安装
发布于 2017-02-11 16:44:02
https://stackoverflow.com/questions/42026186
复制相似问题