VeighNa量化社区
你的开源社区量化交易平台
Member
avatar
加入于:
帖子: 12
声望: 0

用VeighNa Station自带的python环境,如何正常更新和安装第三方库?
我使用VeighNa Station自带的python环境,总是报如下问题,这该如何解决?

python : ERROR: Exception:
所在位置 行:1 字符: 1

  • python -m pip install --upgrade pip
  • ~~~~~~~
    • CategoryInfo : NotSpecified: (ERROR: Exception::String) [], RemoteException
    • FullyQualifiedErrorId : NativeCommandError

Traceback (most recent call last):
File "D:\veighna_studio\lib\site-packages\pip_internal\cli\base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "D:\veighna_studio\lib\site-packages\pip_internal\cli\req_command.py", line 247, in wrapper
return func(self, options, args)
File "D:\veighna_studio\lib\site-packages\pip_internal\commands\install.py", line 335, in run
build_tracker = self.enter_context(get_build_tracker())
File "D:\veighna_studio\lib\site-packages\pip_internal\cli\command_context.py", line 27, in enter_context
return self._main_context.enter_context(context_provider)
File "D:\veighna_studio\lib\contextlib.py", line 492, in enter_context
result = _cm_type.enter(cm)
File "D:\veighna_studio\lib\contextlib.py", line 135, in enter
return next(self.gen)
File "D:\veighna_studio\lib\site-packages\pip_internal\operations\build\build_tracker.py", line 46, in get_build_tracker
root = ctx.enter_context(TempDirectory(kind="build-tracker")).path
File "D:\veighna_studio\lib\site-packages\pip_internal\utils\temp_dir.py", line 125, in init
path = self._create(kind)
File "D:\veighna_studio\lib\site-packages\pip_internal\utils\temp_dir.py", line 164, in _create
path = os.path.realpath(tempfile.mkdtemp(prefix=f"pip-{kind}-"))
File "D:\veighna_studio\lib\tempfile.py", line 357, in mkdtemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File "D:\veighna_studio\lib\tempfile.py", line 126, in _sanitize_params
dir = gettempdir()
File "D:\veighna_studio\lib\tempfile.py", line 299, in gettempdir
return _os.fsdecode(_gettempdir())
File "D:\veighna_studio\lib\tempfile.py", line 292, in _gettempdir
tempdir = _get_default_tempdir()
File "D:\veighna_studio\lib\tempfile.py", line 223, in _get_default_tempdir
raise FileNotFoundError(_errno.ENOENT,
FileNotFoundError: [Errno 2] No usable temporary directory found in ['C:\Users\xx\AppData\Local\Temp', 'C:\Users\xx\AppData\Local\Temp', 'C:\Users\xx\AppData\Local\Temp', 'C:\Windows\Temp'
, 'c:\temp', 'c:\tmp', '\temp', '\tmp', 'C:\Users\xx']
[notice] A new release of pip available: 22.3.1 -> 23.1.2
[notice] To update, run: python.exe -m pip install --upgrade pip

Member
avatar
加入于:
帖子: 12
声望: 0

解决了,是权限问题。
那么问题来了,如何自己删帖呢?

© 2015-2022 上海韦纳软件科技有限公司
备案服务号:沪ICP备18006526号

沪公网安备 31011502017034号

【用户协议】
【隐私政策】
【免责条款】