Вот как воспроизвести в моей локальной машине: < /p>
- < li>для создания venv
Код: Выделить всё
python3.12 -m venv venv - для загрузки среды
Код: Выделить всё
source venv/bin/activate - my, что Python3.12 и какой Pip3.12 Все указывают на правильный путь, то есть / venv/bin/python3.12
Код: Выделить всё
Collecting hello-world
Using cached hello_world-0.2-py3-none-any.whl
Installing collected packages: hello-world
Successfully installed hello-world-0.2
WARNING: Target directory /opt/homebrew/lib/python3.12/site-packages/hello.py already exists. Specify --upgrade to force replacement.
WARNING: Target directory /opt/homebrew/lib/python3.12/site-packages/hello_world-0.2.dist-info already exists. Specify --upgrade to force replacement.
WARNING: Target directory /opt/homebrew/lib/python3.12/site-packages/bin already exists. Specify --upgrade to force replacement.
Подробнее здесь: https://stackoverflow.com/questions/793 ... nvironment
Мобильная версия