Код: Выделить всё
[~/Documents]$ pip install django
< /code>
, и у меня есть эти ошибки: < /p>
site-packages/stash/bin/pip.py:35: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
from distutils.util import convert_path
Querying PyPI ...
Downloading package ...
Opening: https://files.pythonhosted.org/packages/63/e0/6a5b5ea350c5bd63fe94b05e4c146c18facb51229d9dee42aa39f9fc2214/Django-5.2-py3-none-any.whl
Save as: /private/var/mobile/Containers/Data/Application/31B610E4-119A-4907-8E17-35502B9C7701/tmp//Django-5.2-py3-none-any.whl (8301361 bytes)
[====================] 100.00% | 7.9MiB
stash: ^C
KeyboardInterrupt: Exit: 0
Installing wheel: Django-5.2-py3-none-any.whl...
stash: : name 'sys' is not defined
Я попытался добавить import sys в консоли после запуска запуска_stash.py с import sys внутри. Кроме того, я попытался заставить различные версии Django установить. У меня все еще есть ошибки: < /p>
Код: Выделить всё
[~/Documents]$ pip install django
Querying PyPI ...
Downloading package ...
Opening: https://files.pythonhosted.org/packages/63/e0/6a5b5ea350c5bd63fe94b05e4c146c18facb51229d9dee42aa39f9fc2214/Django-5.2-py3-none-any.whl
Save as: /private/var/mobile/Containers/Data/Application/31B610E4-119A-4907-8E17-35502B9C7701/tmp//Django-5.2-py3-none-any.whl (8301361 bytes)
[====================] 100.00% | 7.9MiB
stash: ^C
KeyboardInterrupt: Exit: 0
Error: failed to download package from https://files.pythonhosted.org/packages/63/e0/6a5b5ea350c5bd63fe94b05e4c146c18facb51229d9dee42aa39f9fc2214/Django-5.2-py3-none-any.whl
stash: ^C
KeyboardInterrupt: Exit: 1
< /code>
Также у меня есть эта раздражающая ошибка:
stash: ^C KeyboardInterrupt: Exit: 1
stash: ^C
KeyboardInterrupt: Exit: 0
StaSh v0.7.5 on python 3.10.4
Warning: you are running StaSh in python3. Some commands may not work correctly in python3.
Please help us improving StaSh by reporting bugs on github.
Tip: A background job can be issued by appending & at the end of a normal command, e.g. httpserver &
[~/Documents]$ pip install django
…
< /code>
Я думал, что вначале это проблема с моей подключенной Apple Magic Keyboard. Я попробовал без той же ошибки.
Не могли бы вы помочь мне, пожалуйста, с установкой?
Подробнее здесь: https://stackoverflow.com/questions/796 ... s-not-defi