命令行
conda info --system --json --quiet
结果
{
"active_prefix": "D:Program FilesArcGISProbinPythonenvsarcgispro-py3",
"active_prefix_name": "arcg服务器托管网ispro-py3",
"av_data_dir": "D:Program FilesArcGISProbinPythonetcconda",
"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 FilesArcGISProbinPython",
"conda_prefix": "D:Program FilesArcGISProbinPython",
"conda_private": false,
"conda_shlvl": -1,
"conda_version": "4.14.0",
"config_files": [
"D:Program FilesArcGISProbinPython.condarc",
"C:Usersadmin.condarc"
],
"default_prefix": "D:Program FilesArcGISProbinPythonenvsarcgispro-py3",
"env_vars": {
"CIO_TEST": "",
"CONDARC": "D:Program FilesArcGISProbinPython.condarc",
"CONDA_DEFAULT_ENV": "arcgispro-py3",
"CONDA_EXE": "conda",
"CONDA_PREFIX": "D:Program FilesArcGISProbinPythonenvsarcgispro-py3",
"CONDA_ROOT": "D:Program FilesArcGISProbinPython",
"CURL_CA_BUNDLE": "D:Program FilesPostgreSQL13sslcertsca-bundle.crt",
"HOMEPATH": "Usersadmin",
"OSG_FILE_PATH": "D:OSGData",
"PATH": "C:Program Files (x86)Common FilesOracleJavajavapath;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:WindowsSystem32OpenSSH;D:Program FilesCMakebin;D:OSGbuildbin;D:cygwin64bin;D:Program FilesGitcmd;D:ProgramDataanaconda3;D:ProgramDataanaconda3Librarybin;C:Program Filesdotnet;C:Program FilesMicrosoft SQL Server130ToolsBinn;C:Program Files (x86)dotnet;C:Pro服务器托管网gram FilesMicrosoft SQL Server150ToolsBinn;C:Program FilesJavajdk1.8.0_251bin;D:gdalcurl-8.6.0_1-win64-mingwbin;C:UsersadminAppDataLocalProgramsPythonPython311Scripts;C:UsersadminAppDataLocalProgramsPythonPython311;C:UsersadminAppDataLocalMicrosoftWindowsApps;;D:Program FilesJetBrainsPyCharm 2023.1.4bin;;D:Program FilesJetBrainsCLion 2023.1.5bin;;C:Usersadmin.dotnettools;D:Program FilesCMakebin",
"PSMODULEPATH": "C:Program FilesWindowsPowerShellModules;C:Windowssystem32WindowsPowerShellv1.0Modules",
"REQUESTS_CA_BUNDLE": "",
"SSL_CERT_FILE": ""
},
"envs": [
"C:Usersadmin.condaenvsAIdrawing",
"C:Usersadmin.condaenvsenvironment",
"C:Usersadmin.condaenvsgeoscene",
"C:Usersadmin.condaenvsgeosecenelow",
"C:Usersadmin.condaenvspractice",
"C:UsersadminAppDataLocalGeoScenecondaenvsgeoscenepro-py3-clone",
"D:Program FilesArcGISProbinPython",
"D:Program FilesArcGISProbinPythonenvsarcgispro-py3",
"D:Program FilesArcGISProbinPythonenvscondatest1",
"D:Program FilesArcGISProbinPythonenvsgeoscenepro-py3",
"D:Program FilesArcGISProbinPythonenvsmy-env",
"D:Program FilesGeoSceneProbinPythonenvsgeoscenepro-py3"
],
"envs_dirs": [
"D:Program FilesArcGISProbinPythonenvs",
"C:UsersadminAppDataLocalESRIcondaenvs",
"C:Usersadmin.condaenvs"
],
"is_windows_admin": true,
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"C:UsersadminAppDataLocalESRIcondapkgs",
"D:Program FilesArcGISProbinPythonpkgs",
"C:Usersadmin.condapkgs"
],
"platform": "win-64",
"python_version": "3.9.16.final.0",
"rc_path": "C:Usersadmin.condarc",
"requests_version": "2.28.1",
"root_prefix": "D:Program FilesArcGISProbinPython",
"root_writable": true,
"site_dirs": [
"C:UsersadminAppDataRoamingPythonPython311"
],
"sys.executable": "D:Program FilesArcGISProbinPythonScriptsconda.exe",
"sys.prefix": "C:UsersadminAppDataLocalTemp_MEI472162",
"sys.version": "3.9.16 [MSC v.1931 64 bit (AMD64)]",
"sys_rc_path": "D:Program FilesArcGISProbinPython.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:Usersadmin.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的信息。
如果你有特定的需求,请提供更详细的信息,以便我能给出更具体的解决方案。
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
查看本专栏目录 关于作者 还是大剑师兰特:曾是美国某知名大学计算机专业研究生,现为航空航海领域高级前端工程师;CSDN知名博主,GIS领域优质创作者,深耕openlayers、leaflet、mapbox、cesium,canvas,webgl,echarts…