[Linux] Installez Python 3 sans privilèges d'administrateur

Quand j'ai essayé d'installer le module Python sur le serveur de l'école, je ne pouvais pas, alors j'ai installé tout Python localement.

    1. Créez et déplacez un répertoire (ici src) vers votre répertoire personnel. [répertoire cd / home / src]
  1. Téléchargez Python avec la commande wget.  [ wget https://www.python.org/ftp/python/3.6.3/Python-3.6.3.tgz ]

    1. Dégivrer.   [ tar xvzf Python-3.6.3.tgz ]

Quatre. faire. Spécifiez l'emplacement d'installation avec configure (ici / home directory / local /).   [ cd Python-3.6.3 ] [./configure --prefix = / répertoire home / local / python]  [ make ]  [ make install]

Cinq. Traverser.  [ vi ~/.bash_profile ]

Ajoutez la phrase suivante. [export PATH = $ PATH: / répertoire personnel / local / python / bin]

<Méthode d'addition> Mode de commande avec vi ouvert Entrez "A" pour entrer en mode d'édition (ajouté à la fin de la ligne actuelle) Après la saisie, appuyez sur "esc" pour entrer en mode commande Entrez ": wq" pour enregistrer et quitter

L'installation est terminée à ce stade!

〇 Comment utiliser [/ Répertoire personnel / local / python / bin / nom du fichier python3]

〇Installation de la bibliothèque [/ Home directory / local / python / bin / pip3 install package] Les principaux doivent être inclus dès le début. Cependant, pip avait besoin d'une mise à jour.

Recommended Posts

[Linux] Installez Python 3 sans privilèges d'administrateur
Comment installer MeCab (v0.996) et les bibliothèques pour Python sans privilèges d'administrateur
Installez CaboCha sans privilèges root.
Installez Python Pillow sur Amazon Linux
Installation à partir des sources de python, numpy, scipy sans privilèges root sur Linux
Installez scipy sur Linux sans connexion Internet
Installez Python 3.8, Pip 3.8 sur EC2 (Amazon Linux 2)
Installation locale de Python
Installez NAOqi python
Installer le contrôle Python
CentOS8 --Installer --Python3
Stray build Python-3.8.5 sur CentOS sans privilèges root
Installer python sur WSL
Comment installer Python
Installez Python sur Pidora.
Installez Scrapy sur python3
[Node] [npm] Installer le paquetage npm sur MacOS / Linux sans sudo
Installez Python sur Mac
Comment installer python
Installer Python 3 dans un environnement Mac
Installer Python à partir de la source
Installez Python3.4 sur CentOS 6.6
Installation du laboratoire Python Jupyter
Installer une bibliothèque externe pour python
Installer python (pyenv, pyenv-virtualenv)
Installez Voluptuous avec Python 2.5
Installez python sur Windows
Compilez et installez MySQL-python pour python2.7 sur Amazon Linux
Conseils d'installation de Python PyTorch
Installez Python 2.7.3 sur CentOS 5.4
Installez Python avec pyenv
Installez Python 3.3 sur Ubuntu 12.04
Installez Python 3.4 sur Mac
Installez openblas (sans apt-get)
Installez Python 3.6 sur Docker
Installez Python (pour Windows)
Installez Minecraft sur Arch Linux
[2020.8 dernière] Comment installer Python
Comment installer Python [Windows]
Installez Python 3.8 sur RHEL 8 (AppStream)
Installer Linux sur Chromebox
Installer watchdog sur Windows + Python 3.3
Installez Python et Flask (Windows 10)
Installer l'environnement Python avec Anaconda
Installer pygame sur python3.4 sur Mac
Windows10: installation de la bibliothèque dlib pour python
Installez Python 3.8 sur CentOS 7 (SCL)
Installez JDK sur Linux
Installer une bibliothèque externe avec Python
[Linux] [Paramètres initiaux] Installation et désinstallation
Installer plusieurs versions de Python
Installez pandas 0.14 sur python3.4 [sur Mac]
Installez Python 3.7 et Django 3.0 (CentOS)
Installez OpenCV sur Ubuntu + python
Python --Installez MySQLDB sur EC2
Installez tomcat 5.5 sur Amazon Linux.
Installez pyenv depuis Homebrew, installez Python depuis pyenv
Installez Python 3.8 sur CentOS 8 (AppStream)
Installation de Homebrew sur Amazon Linux 2