python3.5 Environment construction under Linux

Source: Internet
Author: User

UBUNTU12 is installed properly under the VM11 version of the virtual machine, UBUNTU14 is not resolved under the virtual machine 11-14 version because some file permissions are not sufficient for installation to fail (UBUNTU14 installation failed).

Ubuntu12 after the installation is complete, first

  1. sudo rm-rf/var/lib/dpkg/lock

Note: This command has sudo to improve permissions, so to enter the password, the password should be entered again after the command.

2. Sudo rm-rf/var/cache/apt/archives/lock

These two commands clarify some permissions issues so that subsequent commands can be executed smoothly.

Then the first command:

  • sudo add-apt-repository ppa:fkrull/deadsnakes
  • After the command executes, a command is prompted and the enter key is pressed to continue
  • sudo apt-get update
  • sudo apt-get install python3.5
  • To install python3.5, repeat these steps if there is a problem with this step

Detection version use:

Python3–veersion detects Python3 version, detects other low versions using Python–veersion

python3.5 Environment construction under Linux

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.