Summary of Python environment issues in the CentOS configuration

Source: Internet
Author: User

1, install Python3 is mainly version problem, with 3.6 better than 3.7

Error Modulenotfounderror:no module named ' _ctypes '

Https://www.cnblogs.com/Mr-wangxd/p/7028285.html

2, there have been error pkg_resources when installing Pip . Distributionnotfound:the ' pip==7.1.0 ' distribution was wasn't found and is ....

A few times toss, still accidentally put a lot of original Python deleted, this is really wrong operation!

python-m pip uninstall pip Setuptools again reload, or not, just

The main is to put the first ls-l to see its soft connection there.

ls-l grep python

Ls-l grep pip

Ln-s/usr/python/bin/python3/usr/bin/python
ln-s/usr/python/bin/pip3/usr/bin/pip   When I correctly point to the PIP3 in the new Python3 directory, it is correct and there is no version problem.

Key commands:

python-m pip uninstall pip Setuptoolspip install --upgrade setuptools

Python-m pip--version This check version, on this error, important

centos7.2, the system comes with python2.7. When upgrading to Python3, import Sqlite3 appears no module named _sqlite3 workaround

76380802

Summary of Python environment issues in the CentOS configuration

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.