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

前端 未结 5 1806
孤街浪徒
孤街浪徒 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:22

    Use of pip._internal in PyCharm Python Console generates WARNING message

    see: https://github.com/pypa/pip/issues/7498

    Move the current entrypoint from pip._internal.main:main to pip._internal.cli.main:main

    in PyCharm Python Console use:

    import pip
    from pip._internal.cli.main import main as pipmain
    pipmain(['install', path&packagename])
    

提交回复
热议问题