命令行
python
conda info --system --json --quiet
结果
XML
{
"active_prefix": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3",
"active_prefix_name": "arcgispro-py3",
"av_data_dir": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\etc\\conda",
"av_metadata_url_base": null,
"channels": [
"https://repo.anaconda.com/pkgs/main/win-64",
"https://repo.anaconda.com/pkgs/main/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",
"https://conda.anaconda.org/esri/win-64",
"https://conda.anaconda.org/esri/noarch"
],
"conda_build_version": "not installed",
"conda_env_version": "4.14.0",
"conda_location": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"conda_prefix": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"conda_private": false,
"conda_shlvl": -1,
"conda_version": "4.14.0",
"config_files": [
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\.condarc",
"C:\\Users\\admin\\.condarc"
],
"default_prefix": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3",
"env_vars": {
"CIO_TEST": "<not set>",
"CONDARC": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\.condarc",
"CONDA_DEFAULT_ENV": "arcgispro-py3",
"CONDA_EXE": "conda",
"CONDA_PREFIX": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3",
"CONDA_ROOT": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"CURL_CA_BUNDLE": "D:\\Program Files\\PostgreSQL\\13\\ssl\\certs\\ca-bundle.crt",
"HOMEPATH": "\\Users\\admin",
"OSG_FILE_PATH": "D:\\OSG\\Data",
"PATH": "C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;D:\\Program Files\\CMake\\bin;D:\\OSG\\build\\bin;D:\\cygwin64\\bin;D:\\Program Files\\Git\\cmd;D:\\ProgramData\\anaconda3;D:\\ProgramData\\anaconda3\\Library\\bin;C:\\Program Files\\dotnet\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\dotnet;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\Java\\jdk1.8.0_251\\bin;D:\\gdal\\curl-8.6.0_1-win64-mingw\\bin;C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python311\\Scripts\\;C:\\Users\\admin\\AppData\\Local\\Programs\\Python\\Python311\\;C:\\Users\\admin\\AppData\\Local\\Microsoft\\WindowsApps;;D:\\Program Files\\JetBrains\\PyCharm 2023.1.4\\bin;;D:\\Program Files\\JetBrains\\CLion 2023.1.5\\bin;;C:\\Users\\admin\\.dotnet\\tools;D:\\Program Files\\CMake\\bin",
"PSMODULEPATH": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules",
"REQUESTS_CA_BUNDLE": "<not set>",
"SSL_CERT_FILE": "<not set>"
},
"envs": [
"C:\\Users\\admin\\.conda\\envs\\AIdrawing",
"C:\\Users\\admin\\.conda\\envs\\environment",
"C:\\Users\\admin\\.conda\\envs\\geoscene",
"C:\\Users\\admin\\.conda\\envs\\geosecenelow",
"C:\\Users\\admin\\.conda\\envs\\practice",
"C:\\Users\\admin\\AppData\\Local\\GeoScene\\conda\\envs\\geoscenepro-py3-clone",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\arcgispro-py3",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\condatest1",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\geoscenepro-py3",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs\\my-env",
"D:\\Program Files\\GeoScene\\Pro\\bin\\Python\\envs\\geoscenepro-py3"
],
"envs_dirs": [
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\envs",
"C:\\Users\\admin\\AppData\\Local\\ESRI\\conda\\envs",
"C:\\Users\\admin\\.conda\\envs"
],
"is_windows_admin": true,
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"C:\\Users\\admin\\AppData\\Local\\ESRI\\conda\\pkgs",
"D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\pkgs",
"C:\\Users\\admin\\.conda\\pkgs"
],
"platform": "win-64",
"python_version": "3.9.16.final.0",
"rc_path": "C:\\Users\\admin\\.condarc",
"requests_version": "2.28.1",
"root_prefix": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python",
"root_writable": true,
"site_dirs": [
"C:\\Users\\admin\\AppData\\Roaming\\Python\\Python311"
],
"sys.executable": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\Scripts\\conda.exe",
"sys.prefix": "C:\\Users\\admin\\AppData\\Local\\Temp\\_MEI472162",
"sys.version": "3.9.16 [MSC v.1931 64 bit (AMD64)]",
"sys_rc_path": "D:\\Program Files\\ArcGIS\\Pro\\bin\\Python\\.condarc",
"user_agent": "conda/4.14.0 requests/2.28.1 CPython/3.9.16 Windows/10 Windows/10.0.19045",
"user_rc_path": "C:\\Users\\admin\\.condarc",
"virtual_pkgs": [
[
"__cuda",
"12.2",
"0"
],
[
"__win",
"0",
"0"
],
[
"__archspec",
"1",
"x86_64"
]
]
}
更改信息
更改 conda info信息
conda info
命令用于显示conda的信息,但conda本身不提供直接修改conda信息的功能。如果你想要修改conda环境的信息,你可能是指更新conda环境的包或者是更改conda环境的配置。
例如,更新conda环境中的所有包,你可以使用以下命令:
conda update --all
如果你想要更改conda配置,比如添加新的channel,你可以使用 conda config
命令。例如,添加一个新的channel:
conda config --add channels new_channel_name
如果你指的是修改conda的元数据或者是其他信息,这通常需要直接操作conda的数据文件或者是修改相应的配置文件,但这样做可能会破坏conda的兼容性或者是引入不可预见的问题。在没有明确的需求或者是具体的应用场景下,我不推荐直接修改conda的信息。
如果你有特定的需求,请提供更详细的信息,以便我能给出更具体的解决方案。