我运行了以下代码来更新anaconda并更新我在py36虚拟环境中安装的所有python软件包。在运行下面的代码之前,我认为我运行了类似“ conda update -n root”的内容,因为我读了一篇SO帖子,那是更新anaconda的方式。当然,现在我找不到帖子,历史记录也没有显示昨天的终端会话命令。我这样做是因为特别是我想将cvxpy软件包更新到最新版本,并且由于某种原因“ conda update cvxpy”不这样做。我想是因为也许还有其他依赖项使其无法更新。因此,我尝试更新所有内容。除了现在,当我尝试运行“ conda list”以检查我已安装的python软件包的版本时,我收到以下有关意外错误的消息。有谁知道可能是什么问题并提出解决方案?哦,我也在Windows 10上。
代码:
activate py36
(py36) C:\Users\username> conda update --all
代码:
activate py36
输出:
(py36) C:\Users\username>
代码:
conda list
输出:
Microsoft Windows [Version 10.0.16299.967]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\username>activate py36
(py36) C:\Users\username>conda list
# >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<<
Traceback (most recent call last):
File "C:\Users\username\AppDataPython\lib\site-packages\conda\exceptions.py", line 1002, in __call__
return func(*args, **kwargs)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\cli\main.py", line 84, in _main
exit_code = do_call(args, p)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\cli\conda_argparse.py", line 82, in do_call
exit_code = getattr(module, func_name)(args, parser)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\cli\main_list.py", line 142, in execute
show_channel_urls=context.show_channel_urls)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\cli\main_list.py", line 80, in print_packages
show_channel_urls=show_channel_urls)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\cli\main_list.py", line 45, in list_packages
installed = sorted(PrefixData(prefix, pip_interop_enabled=True).iter_records(),
File "C:\Users\username\AppDataPython\lib\site-packages\conda\core\prefix_data.py", line 117, in iter_records
return itervalues(self._prefix_records)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\core\prefix_data.py", line 146, in _prefix_records
return self.__prefix_records or self.load() or self.__prefix_records
File "C:\Users\username\AppDataPython\lib\site-packages\conda\core\prefix_data.py", line 70, in load
self._load_site_packages()
File "C:\Users\username\AppDataPython\lib\site-packages\conda\core\prefix_data.py", line 261, in _load_site_packages
python_record = read_python_record(self.prefix_path, af, python_pkg_record.version)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\gateways\disk\read.py", line 245, in read_python_record
pydist = PythonDistribution.init(prefix_path, anchor_file, python_version)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\common\pkg_formats\python.py", line 90, in init
return PythonEggInfoDistribution(anchor_full_path, python_version, sp_reference)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\common\pkg_formats\python.py", line 401, in __init__
super(PythonEggInfoDistribution, self).__init__(anchor_full_path, python_version)
File "C:\Users\username\AppDataPython\lib\site-packages\conda\common\pkg_formats\python.py", line 104, in __init__
raise RuntimeError("Path not found: %s" % anchor_full_path)
RuntimeError: Path not found: C:\Users\username\AppDataPython\envs\py36\Lib\site-packages\CVXcanon-0.1.1-py3.6-win-amd64.egg\EGG-INFO
`$ C:\Users\username\AppDataPython\Scripts\conda-script.py list`
environment variables:
CIO_TEST=<not set>
CONDA_DEFAULT_ENV=py36
CONDA_EXE=C:\Users\username\AppDataPython\Scripts\conda.exe
CONDA_PREFIX=C:\Users\username\AppDataPython\envs\py36
CONDA_PROMPT_MODIFIER=(py36)
CONDA_PYTHON_EXE=C:\Users\username\AppDataPython\python.exe
CONDA_ROOT=C:\Users\username\AppDataPython
CONDA_SHLVL=1
HOMEPATH=\Users\username
PATH=C:\Users\username\AppDataPython\;C:\Users\username\AppDataPython\Library
\mingw-w64\bin;C:\Users\username\AppDataPython\Library\usr\bin;C:\Users
\username\AppDataPython\Library\bin;C:\Users\username\AppDataPython\Scri
pts;C:\Users\username\AppDataPython\bin;C:\Users\username\AppDataPython\
envs\py36;C:\Users\username\AppDataPython\envs\py36\Library\mingw-w64\b
in;C:\Users\username\AppDataPython\envs\py36\Library\usr\bin;C:\Users\y
h05061\AppDataPython\envs\py36\Library\bin;C:\Users\username\AppDataPyt
hon\envs\py36\Scripts;C:\Users\username\AppDataPython\envs\py36\bin;C:\
Users\username\AppDataPython\condabin;C:\Program Files (x86)\Common Fil
es\Oracle\Java\javapath;C:\Users\username\AppDataPython;C:\Users\yh0506
1\AppDataPython\Library\mingw-w64\bin;C:\Users\username\AppDataPython\L
ibrary\usr\bin;C:\Users\username\AppDataPython\Library\bin;C:\Users\yh0
5061\AppDataPython\Scripts;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\S
ystem32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;Y:\oracle\ora
92\BIN;C:\Program Files\Microsoft VS Code\bin;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\;C:\Program Files\PuTTY\;C:\Program Files\M
IT\Kerberos\bin;C:\Users\username\AppData\Local\Microsoft\WindowsApps;C
:\Users\username\Spark\bin;\bin;C:\Program
Files\Intel\WiFi\bin\;C:\Program Files\Common
Files\Intel\WirelessCommon\
PSMODULEPATH=C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\Windows
PowerShell\v1.0\Modules
PYTHONIOENCODING=1252
REQUESTS_CA_BUNDLE=<not set>
SSL_CERT_FILE=<not set>
active environment : py36
active env location : C:\Users\username\AppDataPython\envs\py36
shell level : 1
user config file : C:\Users\username\.condarc
populated config files :
conda version : 4.6.7
conda-build version : 3.15.1
python version : 3.7.0.final.0
base environment : C:\Users\username\AppDataPython (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/free/win-64
https://repo.anaconda.com/pkgs/free/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\Users\username\AppDataPython\pkgs
C:\Users\username\.conda\pkgs
C:\Users\username\AppData\Local\conda\conda\pkgs
envs directories : C:\Users\username\AppDataPython\envs
C:\Users\username\.conda\envs
C:\Users\username\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.6.7 requests/2.19.1 CPython/3.7.0 Windows/10 Windows/10.0.16299
administrator : False
netrc file : None
offline mode : False
An unexpected error has occurred. Conda has prepared the above report.
If submitted, this report will be used by core maintainers to improve
future releases of conda.
Would you like conda to send this report to the core maintainers?
[y/N]: