当我跑
pip install --upgrade pip
Run Code Online (Sandbox Code Playgroud)
我收到此错误消息:
Collecting pip
Downloading pip-8.1.0-py2.py3-none-any.whl (1.2MB)
100% |????????????????????????????????| 1.2MB 371kB/s
Installing collected packages: pip
Found existing installation: pip 8.0.2
Uninstalling pip-8.0.2:
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 209, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 725, in install
requirement.uninstall(auto_confirm=True)
File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 752, in uninstall
paths_to_remove.remove(auto_confirm)
File "/Library/Python/2.7/site-packages/pip/req/req_uninstall.py",line 115, in remove
renames(path, new_path)
File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 266, in renames
shutil.move(old, new)
File"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line …Run Code Online (Sandbox Code Playgroud) 当我尝试时
os.system("open " + 'myfile.xlsx')
我得到输出'0'
类似地,尝试
os.system("start excel.exe myfilepath")
给出结果 32512
我已经导入了操作系统和系统,并且在Mac上。如何更改此设置,以使其确实启动该excel文件?出于好奇,它打印出的数字是什么意思?
谢谢!