(base) C:\Users\Admin>activate RR-1722-stage1
(RR-1722-stage1) C:\Users\Admin>pip -m pip install --upgrade pip
Usage:
pip <command> [options]
no such option: -m
(RR-1722-stage1) C:\Users\Admin>cd dektop
The system cannot find the path specified.
(RR-1722-stage1) C:\Users\Admin>cd desktop
(RR-1722-stage1) C:\Users\Admin\Desktop>cd eyanta
The system cannot find the path specified.
(RR-1722-stage1) C:\Users\Admin\Desktop>cd eyantra
(RR-1722-stage1) C:\Users\Admin\Desktop\eyantra>cd 2. Test Setup
(RR-1722-stage1) C:\Users\Admin\Desktop\eyantra\2. Test Setup>python test_task0.
py
Traceback (most recent call last):
File "test_task0.py", line 29, in <module>
import task0_cardinal
ImportError: bad magic number in 'task0_cardinal': b'B\r\r\n'
(RR-1722-stage1) C:\Users\Admin\Desktop\eyantra\2. Test Setup>
答案1
尝试:
python -m pip install --no-cache --upgrade pip
如果要pip
直接使用,可以使用以下命令:
pip install --no-cache --upgrade pip
用于-m
“将库模块作为脚本运行”