How do I install a .whl file in a PyCharm virtualenv?

前端 未结 5 1827
孤街浪徒
孤街浪徒 2020-12-31 02:49

The package manager in Project Interpreter doesn\'t appear to have any way for me to run a pure pip command so I\'m unable to install the wheel as I normally would through c

5条回答
  •  情深已故
    2020-12-31 03:12

    To install via your command line, and avoid installing on your base Python, you'll have to first activate the virtualenv.

    You can do this on POSIX using:

    $ source path_to_your_venv/bin/activate
    

    And then for Windows systems:

    > path_to_venv\Scripts\activate
    

    You can then install the .whl file with pip install filename.whl while the virtual env has been activated.

提交回复
热议问题