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?

More than 5 years have passed since last update.

Pycharmにおけるpyenv ちゃんと理解

Posted at

Pycharmで仮想Python環境を作るには

  • インタープリターの追加から行う
    image.png
    新しいロケーションを設定する。

で、これを反映させるコマンドが

source venv/bin/activate

ここから、pipでライブラリを入れると

pip install selenium

こんな感じで、venvの下のsite-packages配下にライブラリが入る
image.png

ModuleNotFoundError: No module named

この手のエラーは、この辺が原因で、きちんと配置できていないと思われる。

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?