Closed BerzasProd closed 2 years ago
This is where virtual environments come in handy.
You could pip uninstall burnysc2
then pip install poetry
Afterwards, in your bot folder, you can initialize your environment
poetry init # press enter a bunch of times
poetry add burnysc2 # add the library to the project
poetry run python your_bot.py # launch your bot in the virtual environment
Pycharm should support poetry natively, not sure about VScode.
That being said, I'm working on some improvements and have updated importlib-metadata there https://github.com/BurnySc2/python-sc2/pull/131 It might take a bit more before I merge it though.
Hello, On Command Prompt if I run 1:
pip install poetry
I get this error
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. burnysc2 5.0.15 requires importlib-metadata<=2.1.0, but you have importlib-metadata 4.11.3 which is incompatible.
If I run 2:
pip install --upgrade --force-reinstall https://github.com/BurnySc2/python-sc2/archive/develop.zip
I get this error
_ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts. keyring 23.5.0 requires importlib-metadata>=3.6, but you have importlib-metadata 2.1.0 which is incompatibl_e.
So is my importlib-metadata too new or too old? I tried updating it using Anaconda and it seems I have the newest version now. Or perhaps the issue is somewhere else?
Please help, thank you for your answers!