Python3 using pip,scrapy,sqlite3 problem in FreeBSD

Source: Internet
Author: User

Python3 using pip,scrapy,sqlite3 problem in FreeBSD

Question one:

FreeBSD modifies the default version of Python

Under the/usr/local/bin directory,

MV Python python.oldln-s pythonx.x python

In x.x Write your version

Question two:

Python3 cannot use Pip

With Python 3.4 and later, you can use the ensurepip module to install PIP on FreeBSD and elsewhere.

Python3.4-m Ensurepip

Should install Pip as pip3.4


Question three:

Install Scrapy error, as follows

650) this.width=650; "Src=" Http://s3.51cto.com/wyfs02/M00/88/78/wKioL1f5nk2RNS6oAABGdw_Y6fc688.png-wh_500x0-wm_3 -wmp_4-s_560250341.png "style=" Float:none; "title=" 1.png "alt=" Wkiol1f5nk2rns6oaabgdw_y6fc688.png-wh_50 "/>

Install LIBXSLT.

650) this.width=650; "Src=" Http://s2.51cto.com/wyfs02/M01/88/7C/wKiom1f5nk6RxYrqAACVEoVp-xQ915.png-wh_500x0-wm_3 -wmp_4-s_2869107909.png "style=" Float:none; "title=" 2.png "alt=" Wkiom1f5nk6rxyrqaacveovp-xq915.png-wh_50 "/>


650) this.width=650; "src="/e/u261/themes/default/images/spacer.gif "border=" 0 "style=" Background:url ("/e/u261/ Lang/zh-cn/images/localimage.png ") no-repeat center;border:1px solid #ddd;" alt= "Spacer.gif"/>

Question four:

python3.5 Import sqlite3 appear following error, install py35-sqlite3-3.5.2_7 can

>>> Import Sqlite3

Traceback (most recent):

File "<stdin>", line 1, in <module>

Importerror:no module named ' _sqlite3 '



Python3 using pip,scrapy,sqlite3 problem in FreeBSD

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.