Requirement already satisfied (use –upgrade to upgrade): sqlalchemy in /home/q/python27/lib/python2.7/site-packages You are using pip version 7.1.2, however version 8.0.2 is available. You should consider upgrading via the ‘pip install –upgrade pip’ command.
于是加上建议重新安装:
1
sudo pip install --upgrade sqlalchemy
仍然报错:
The repository located at pypi.xxx.xxx.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with ‘–trusted-host pypi.abc.def.com’.
/home/q/python27/lib/python2.7/site-packages/matplotlib-1.5.1-py2.7-linux-x86_64.egg/matplotlib/font_manager.py:1288: UserWarning: findfont: Font family [u’sans-serif’] not found. Falling back to Bitstream Vera Sans (prop.get_family(), self.defaultFamily[fontext]))
Python 2.7.4 (default, Dec 24 2013, 16:30:42) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on linux2 Type "help", "copyright", "credits" or "license"for more information. >>> import matplotlib Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/home/q/python27/lib/python2.7/site-packages/matplotlib-1.5.1-py2.7-linux-x86_64.egg/matplotlib/__init__.py", line 111, in <module> import inspect File "/home/q/python27/lib/python2.7/inspect.py", line 42, in <module> from collections import namedtuple File "collections.py", line 17, in <module> import numpy as np File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/__init__.py", line 180, in <module> from . import add_newdocs File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/add_newdocs.py", line 13, in <module> from numpy.lib import add_newdoc File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/lib/__init__.py", line 8, in <module> from .type_check import * File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/lib/type_check.py", line 11, in <module> import numpy.core.numeric as _nx File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/core/__init__.py", line 58, in <module> from numpy.testing import Tester File "/home/q/python27/lib/python2.7/site-packages/numpy-1.10.4-py2.7-linux-x86_64.egg/numpy/testing/__init__.py", line 10, in <module> from unittest import TestCase File "/home/q/python27/lib/python2.7/unittest/__init__.py", line 58, in <module> from .result import TestResult File "/home/q/python27/lib/python2.7/unittest/result.py", line 9, in <module>
WARN: Your adapter does not fully support AP virtual interface, enabling –no-virt Config dir: /tmp/create_ap.wlan0.conf.A912iinp PID: 20324 command failed: Operation not supported (-95) Access Point’s SSID is hidden! RTNETLINK answers: Operation not possible due to RF-kill
解决办法:
1 2 3 4 5 6 7 8 9 10 11 12 13
$ sudo rfkill list all 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: dell-wifi: Wireless LAN Soft blocked: yes Hard blocked: no 2: dell-bluetooth: Bluetooth Soft blocked: no Hard blocked: no 3: phy0: Wireless LAN Soft blocked: yes Hard blocked: no
注意看1和3的Soft blocked那里都是yes,在终端里输入:
1 2
$ sudo rfkill unblock wifi $ sudo rfkill unblock all
然后再看看
1 2 3 4 5 6 7 8 9 10 11 12 13
$ sudo rfkill list 0: hci0: Bluetooth Soft blocked: no Hard blocked: no 1: dell-wifi: Wireless LAN Soft blocked: no Hard blocked: no 2: dell-bluetooth: Bluetooth Soft blocked: no Hard blocked: no 3: phy0: Wireless LAN Soft blocked: no Hard blocked: no
Soft-blocking The output to sudo rfkill list shows that your network card is “soft-blocked”. This could happen when the wireless card has been signalled to switch-off via the kernel. Try the following steps: run in a terminal: sudo rfkill unblock wifi; sudo rfkill unblock all rerun sudo rfkill list to confirm that the card has been unblocked. reboot rerun sudo rfkill list again to confirm unblocking as been retained. rerun sudo lshw -class network - you should now see that the kernel has recognised (or not) the wireless card. If the wireless kernel module has been recognised (it should not say “unclaimed”), Network Manager should now be able to see wireless networks that are available in your vacinity.