有一次我尝试用 pip 安装 pygame,但没有找到 pip。
can't open file 'pip' [errno 2] no such file or diretory
当我做“ py pip install pygame ”
所以我尝试重新安装 python 4 次,并尝试了几乎所有可能的安装方式,但它不起作用。所以我尝试手动安装 pip,我尝试了所有可能的方法但有同样的错误:
[errno 9]: bad file descriptor.
我试过很多次。
所以在那之后我尝试通过pycharm安装,当我尝试安装它时显示“没有包安装工具,安装”,当我点击安装时,它显示相同的错误。
[errno 9]: bad file descriptor.
在此之后,我尝试使用诗歌,但当我这样做poetry install win10toast
时显示:
Traceback (most recent call last):
File "C:\Users\acer\.poetry\bin\poetry", line 16, in <module>
from poetry.console import main
File "C:\Users\acer\.poetry\lib\poetry\console\__init__.py", line 1, in <module>
from .application import Application
File "C:\Users\acer\.poetry\lib\poetry\console\application.py", line 5, in <module>
from .commands.about import AboutCommand
File "C:\Users\acer\.poetry\lib\poetry\console\commands\__init__.py", line 4, in <module>
from .check import CheckCommand
File "C:\Users\acer\.poetry\lib\poetry\console\commands\check.py", line 1, in <module>
from poetry.factory import Factory
File "C:\Users\acer\.poetry\lib\poetry\factory.py", line 21, in <module>
from .repositories.pypi_repository import PyPiRepository
File "C:\Users\acer\.poetry\lib\poetry\repositories\pypi_repository.py", line 9, in <module>
from cachecontrol import CacheControl
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\cachecontrol\__init__.py", line 9, in <module>
from .wrapper import CacheControl
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\cachecontrol\wrapper.py", line 1, in <module>
from .adapter import CacheControlAdapter
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\cachecontrol\adapter.py", line 5, in <module>
from requests.adapters import HTTPAdapter
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\requests\__init__.py", line 112, in <module>
from . import utils
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\requests\utils.py", line 27, in <module>
from ._internal_utils import to_native_string
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\requests\_internal_utils.py", line 11, in <module>
from .compat import is_py2, builtin_str, str
File "C:\Users\acer\.poetry\lib\poetry\_vendor\py3.8\requests\compat.py", line 61, in <module>
from http.cookies import Morsel
File "<frozen importlib._bootstrap>", line 991, in _find_and_load
File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 779, in exec_module
File "<frozen importlib._bootstrap_external>", line 915, in get_code
File "<frozen importlib._bootstrap_external>", line 973, in get_data
OSError: [Errno 9] Bad file descriptor
请帮忙,我所做的一切都失败了,我真的需要它,在 repl.it 上编码真的很难。