How to make pyinstaller not use anaconda and build a small-size exe file

后端 未结 2 1158
别那么骄傲
别那么骄傲 2020-12-10 23:09

I have been trying to build .exe file using pyinstaller in windows 10. It worked, but the size of the exe file is ~212 MB, even by using a venv (as in here). I thought it mi

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-10 23:36

    I ran into a similar problem and found PyCharms virtualenv manager very helpful. https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html

    This just necessitated downloading python from python.org and linking the virtual environment to this interpreter, rather than the conda interpreter (otherwise it will throw strange SSL errors).

    This seems to allow neat parallel use of conda and virtualenv.

提交回复
热议问题