0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

UbuntuでVSC python 環境初期設定

Posted at

Python ダウンロード

ビルドツール・ライブラリのインストール

$ sudo apt update
$ sudo apt install build-essential libbz2-dev libdb-dev \
  libreadline-dev libffi-dev libgdbm-dev liblzma-dev \
  libncursesw5-dev libsqlite3-dev libssl-dev \
  zlib1g-dev uuid-dev tk-dev

解答

$ tar xJf Python-3.x.y.tar.xz

設定
*make処理は10〜20程度時間必要

$ cd Python-3.x.y
$ ./configure
$ make
$ sudo make install

インストール
/usr/local/

cd Python3.x.y
./configure --prefix=/home/user/.local/python
make
make install

myproject内にVSCコード保存

pipをアップグレード
仮想環境外のpipをアップグレード

pip install --upgrade pip
python3 -m pip install --upgrade pip

初回だけ

python3 -m venv .venv
source .venv/bin/activate

activate

source .venv/bin/activate
0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?