Python:dist-packages && Site-packages

Source: Internet
Author: User

Let's briefly describe the problem. I use the Ubuntu, source code compiled to install the Python3. I install some libraries that need to be installed by Apt-get, and this time I encounter problems with Python not finding these libraries.

There is a simple article to look at: http://www.cnblogs.com/kevin922/p/3161411.html. It is said that some of the tools installed by the system, including the original Python download tool, will be thrown into the dist-packages. Your own Python installation, the default read site-packages inside the toolkit, of course, Pip installed package will also be thrown into this directory.

So, when I have some libraries that can't be installed using PIP, after installing with Apt-get, you have to copy one copy or link to site-packages below. There is no good way for the moment.

Python:dist-packages && Site-packages

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.