LoginSignup
0

More than 3 years have passed since last update.

Python使わないけどPythonが欲しい(Ubuntu)

Posted at

Ubuntu環境(Ubuntu Server 18.04.2 LTS) をインストールして、node環境を構築し、いざnpmでパッケージをインストールしようとすると、
python_err.png
「python」が見つからないエラーが出る事あると思います。
んで、ググってみるとよく見かけるのが、

 ・Ubuntuには最初からPythonが入っている
  →「python3」コマンドで起動できます。でもnpmインストールに必要なのは2.7系。

 ・Ubuntu2.7系をインストールするには「sudo apt-get install python2.7」
  →「python2」で起動できます。でもnpmインストール時エラーは回避出来ません。

「ただnpmインストール時のエラーを回避したいだけ」の方は、
このコマンドでインストールすれば、npmからpythonが使える様になります。

sudo apt install python-minimal

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0