python開發問題

1. pip3

'''
pip3 install --upgrade pippython

sudo apt-get install python3-setuptoolssql

pip3 install --upgrade pip
Traceback (most recent call last):
File "/usr/bin/pip3", line 9, in
from pip import main
ImportError: cannot import name 'main'
vim

sudo vim pip3scrapy

import sys
from pip import main
if name == 'main':
sys.exit(main())ui

Change to:code

import sys
from pip import main
if name == 'main':
sys.exit(main._main())sqlite

'''
2.ModuleNotFoundError: No module named '_sqlite3'ip

>>>sudo apt-get install libsqlite3-dev
從新編譯和安裝Python:

先進入Python源文件目錄下,例如個人是Python-3.6.2
>>>cd Python-3.7.2
>>>./configure
>>>make
>>>sudo make install

3.Collecting Twisted>=13.1.0 (from scrapy)
Could not find a version that satisfies the requirement Twisted>=13.1.0 (from scrapy) (from versions: )
No matching distribution found for Twisted>=13.1.0 (from scrapy)rem

sudo apt-get install bzip2 libbz2-dev
>>>cd Python-3.7.2
>>>./configure
>>>make
>>>sudo make install
相關文章
相關標籤/搜索