Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
python conda环境安装包顺序_Python_Anaconda_Conda_Miniconda - Fatal编程技术网

python conda环境安装包顺序

python conda环境安装包顺序,python,anaconda,conda,miniconda,Python,Anaconda,Conda,Miniconda,从包列表文件(见消息底部)创建环境conda(anaconda/miniconda python) 我已将matplotlib版本指定为3.0.2,在创建env后,我运行python,然后: Python 3.7.9 (default, Aug 31 2020, 12:42:55) [GCC 7.3.0] :: Anaconda, Inc. on linux Type "help", "copyright", "credits" or

从包列表文件(见消息底部)创建环境conda(anaconda/miniconda python)

我已将matplotlib版本指定为3.0.2,在创建env后,我运行python,然后:

Python 3.7.9 (default, Aug 31 2020, 12:42:55)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import matplotlib
>>> matplotlib.__version__
'3.3.2'
我必须
conda卸载matplotlib
然后
conda安装matplotlib=3.0.2
,这样才能有好的matplotlib版本

我认为basemap包与matplotlib存在冲突,这就是为什么会发生这种情况

如何在不卸载/安装matplotlib的情况下创建干净的环境

# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
_libgcc_mutex=0.1=main
basemap=1.2.0=py37h856778e_4
blas=1.0=mkl
bzip2=1.0.8=h7b6447c_0
ca-certificates=2020.10.14=0
certifi=2020.6.20=pyhd3eb1b0_3
cftime=1.2.1=py37heb32a55_0
curl=7.71.1=hbc83047_1
cycler=0.10.0=py37_0
dbus=1.13.18=hb2f20db_0
expat=2.2.10=he6710b0_2
fontconfig=2.13.0=h9420a91_0
freetype=2.10.4=h5ab3b9f_0
geos=3.8.0=he6710b0_0
glib=2.66.1=h92f7085_0
gst-plugins-base=1.14.0=hbbd80ab_1
gstreamer=1.14.0=hb31296c_0
hdf4=4.2.13=h3ca952b_2
hdf5=1.10.4=hb1b8bf9_0
icu=58.2=he6710b0_3
intel-openmp=2020.2=254
jpeg=9b=h024ee3a_2
kiwisolver=1.3.0=py37h2531618_0
krb5=1.18.2=h173b8e3_0
lcms2=2.11=h396b838_0
ld_impl_linux-64=2.33.1=h53a641e_7
libcurl=7.71.1=h20c2e04_1
libedit=3.1.20191231=h14c3975_1
libffi=3.3=he6710b0_2
libgcc-ng=9.1.0=hdf63c60_0
libgfortran-ng=7.3.0=hdf63c60_0
libnetcdf=4.7.3=hb80b6cc_0
libpng=1.6.37=hbc83047_0
libssh2=1.9.0=h1ba5d50_1
libstdcxx-ng=9.1.0=hdf63c60_0
libtiff=4.1.0=h2733197_1
libuuid=1.0.3=h1bed415_2
libxcb=1.14=h7b6447c_0
libxml2=2.9.10=hb55368b_3
lz4-c=1.9.2=heb0550a_3
matplotlib-base=3.3.2=py37h817c723_0
mkl=2020.2=256
mkl-service=2.3.0=py37he904b0f_0
mkl_fft=1.2.0=py37h23d657b_0
mkl_random=1.1.1=py37h0573a6f_0
ncurses=6.2=he6710b0_1
netcdf4=1.5.3=py37hbf33ddf_0
numpy=1.19.2=py37h54aff64_0
numpy-base=1.19.2=py37hfa32c7d_0
olefile=0.46=py37_0
openssl=1.1.1h=h7b6447c_0
pcre=8.44=he6710b0_0
pillow=8.0.1=py37he98fc37_0
pip=20.2.4=py37h06a4308_0
proj4=5.2.0=he6710b0_1
pyparsing=2.4.7=py_0
pyproj=1.9.6=py37h14380d9_0
pyqt=5.9.2=py37h05f1152_2
pyshp=2.1.2=py_0
python=3.7.9=h7579374_0
python-dateutil=2.8.1=py_0
pytz=2020.1=py_0
qt=5.9.7=h5867ecd_1
readline=8.0=h7b6447c_0
setuptools=50.3.0=py37h06a4308_1
sip=4.19.8=py37hf484d3e_0
six=1.15.0=py_0
sqlite=3.33.0=h62c20be_0
tk=8.6.10=hbc83047_0
tornado=6.0.4=py37h7b6447c_1
wheel=0.35.1=py_0
xz=5.2.5=h7b6447c_0
zlib=1.2.11=h7b6447c_3
zstd=1.4.5=h9ceee32_0
matplotlib=3.0.2=py37h5429711_0
#此文件可用于创建环境,使用:
#$conda create--name--file
#平台:linux-64
_libgcc_mutex=0.1=main
basemap=1.2.0=py37h856778e_4
blas=1.0=mkl
bzip2=1.0.8=h7b6447c_0
ca证书=2020.10.14=0
certifi=2020.6.20=pyhd3eb1b0_3
cftime=1.2.1=py37heb32a55_0
旋度=7.71.1=hbc83047_1
循环器=0.10.0=py37_0
dbus=1.13.18=hb2f20db_0
expat=2.2.10=he6710b0_2
fontconfig=2.13.0=h9420a91_0
freetype=2.10.4=h5ab3b9f_0
geos=3.8.0=he6710b0_0
油嘴=2.66.1=h92f7085_0
gst插件库=1.14.0=hbbd80ab_1
gstreamer=1.14.0=hb31296c_0
hdf4=4.2.13=h3ca952b_2
hdf5=1.10.4=hb1b8bf9_0
icu=58.2=he6710b0_3
英特尔openmp=2020.2=254
jpeg=9b=h024ee3a_2
kiwisolver=1.3.0=py37h2531618_0
krb5=1.18.2=h173b8e3_0
lcms2=2.11=h396b838_0
ld_impl_linux-64=2.33.1=h53a641e_7
libcurl=7.71.1=h20c2e04_1
libedit=3.1.20191231=h14c3975_1
libffi=3.3=he6710b0_2
libgcc ng=9.1.0=hdf63c60\u 0
libgfortran ng=7.3.0=hdf63c60\u 0
libnetcdf=4.7.3=hb80b6cc\u 0
libpng=1.6.37=hbc83047_0
libssh2=1.9.0=h1ba5d50_1
libstdcxx ng=9.1.0=hdf63c60\u 0
libtiff=4.1.0=h2733197_1
libuuid=1.0.3=h1bed415_2
libxcb=1.14=h7b6447c_0
libxml2=2.9.10=hb55368b_3
lz4-c=1.9.2=heb0550a_3
matplotlib base=3.3.2=py37h817c723_0
mkl=2020.2=256
mkl服务=2.3.0=py37he904b0f_0
mkl_fft=1.2.0=py37h23d657b_0
mkl_随机=1.1.1=py37h0573a6f_0
ncurses=6.2=he6710b0_1
netcdf4=1.5.3=py37hbf33ddf_0
numpy=1.19.2=py37h54aff64_0
numpy base=1.19.2=py37hfa32c7d_0
olefile=0.46=py37_0
openssl=1.1.1h=h7b6447c_0
pcre=8.44=he6710b0_0
枕头=8.0.1=py37he98fc37_0
pip=20.2.4=py37h06a4308_0
项目4=5.2.0=he6710b0_1
pyparsing=2.4.7=py_0
pyproj=1.9.6=PY37H14380D90
pyqt=5.9.2=py37h05f1152_2
pyshp=2.1.2=py_0
python=3.7.9=h7579374_0
python dateutil=2.8.1=py_0
pytz=2020.1=py_0
qt=5.9.7=h5867ecd_1
读线=8.0=h7b6447c_0
setuptools=50.3.0=py37h06a4308_1
sip=4.19.8=py37hf484d3e_0
六=1.15.0=py_0
sqlite=3.33.0=h62c20be\u 0
tk=8.6.10=hbc83047_0
龙卷风=6.0.4=py37h7b6447c_1
车轮=0.35.1=py_0
xz=5.2.5=h7b6447c_0
zlib=1.2.11=h7b6447c_3
zstd=1.4.5=h9ceee32_0
matplotlib=3.0.2=py37h5429711_0

在哪个环境中安装软件包?它是基础环境吗?如果没有,您是否在检查matplotlib版本之前使用conda activate激活了新创建的环境?是的,我忘了提到,在创建I conda activate之后,我测试了软件包。我肯定会在良好的环境中测试matplotlib版本,因为python版本环境与包列表文件中的3.7.9类似,而在环境之外,我的python版本是3.6.5。我建议执行conda update conda,然后从文件中只安装所需的包,如matplotlib=3.0.2。我猜conda在创建env时会处理主包所需的所有从属中间基包。无需像将matplotlib base=3.3.2放入文件那样放入这些中间包。这可能会在版本之间产生冲突。好吧,如果我理解的话,我生成的导出文件太满了,我必须先用必要的包清理它,而不使用dependenciescorrect!您必须清理需求文件并只添加必要的包。