win11,Anaconda只能安装下列版本
在此之后的版本在安装后都会出现下列问题:
此 论坛https://ask.csdn.net/questions/7693306 也是讨论跟我一样的问题,但未解决。
后来查资料解决了。具体解决看之前写的《解决办法https://blog.csdn.net/qq_40967086/article/details/126377694?spm=1001.2014.3001.5501》
使用老版本安装成功,也能使用各种组件。但使用一段时间后在安装jupyter notebook汉化包时一直不成功。解决一个又一个,最后跳出如下错误:大概意思是此anaconda中python是3.6版本,但此汉化包最低要求3.7版本。
Building wheels for collected packages: pywinpty
Building wheel for pywinpty (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'd:\programfiles(x86)\anaconda3\python.exe' 'd:\programfiles(x86)\anaconda3\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py' build_wheel 'C:\Users\zct\AppData\Local\Temp\tmpdqvhx1im'
cwd: C:\Users\zct\AppData\Local\Temp\pip-install-vi7mpjnx\pywinpty_f7a46034188a459ba2fadfa57a1fbde0
Complete output (50 lines):
Running `maturin pep517 build-wheel -i d:\programfiles(x86)\anaconda3\python.exe --compatibility off`
Compiling autocfg v1.1.0
Compiling target-lexicon v0.12.4
Compiling once_cell v1.14.0
Compiling libc v0.2.132
Compiling proc-macro2 v1.0.43
Compiling windows_x86_64_msvc v0.39.0
Compiling quote v1.0.21
Compiling unicode-ident v1.0.3
Compiling syn v1.0.99
Compiling windows_x86_64_msvc v0.36.1
Compiling either v1.8.0
Compiling parking_lot_core v0.9.3
Compiling scopeguard v1.1.0
Compiling smallvec v1.9.0
Compiling cfg-if v1.0.0
Compiling indoc v1.0.7
Compiling unindent v0.1.10
Compiling bitflags v1.3.2
Compiling num-traits v0.2.15
Compiling lock_api v0.4.8
Compiling windows v0.39.0
Compiling which v4.3.0
Compiling windows-sys v0.36.1
Compiling pyo3-build-config v0.16.6
Compiling parking_lot v0.12.1
Compiling pyo3-ffi v0.16.6
Compiling pyo3 v0.16.6
error: failed to run custom build command for `pyo3-ffi v0.16.6`
Caused by:
process didn't exit successfully: `C:\Users\zct\AppData\Local\Temp\pip-install-vi7mpjnx\pywinpty_f7a46034188a459ba2fadfa57a1fbde0\target\release\build\pyo3-ffi-b8919433da811884\build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-env-changed=PYO3_CROSS
cargo:rerun-if-env-changed=PYO3_CROSS_LIB_DIR
cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_VERSION
cargo:rerun-if-env-changed=PYO3_CROSS_PYTHON_IMPLEMENTATION
cargo:rerun-if-env-changed=PYO3_PRINT_CONFIG
--- stderr
error: the configured Python interpreter version (3.6) is lower than PyO3's minimum supported version (3.7)
warning: build failed, waiting for other jobs to finish...
馃挜 maturin failed
Caused by: Failed to build a native library through cargo
Caused by: Cargo build finished with "exit code: 101": `cargo rustc --manifest-path Cargo.toml --message-format json --release --lib --`
馃摝 Including license file "LICENSE.txt"
馃嵐 Building a mixed python/rust project
馃敆 Found pyo3 bindings
馃悕 Found CPython 3.6 at d:\programfiles(x86)\anaconda3\python.exe
Error: command ['maturin', 'pep517', 'build-wheel', '-i', 'd:\\programfiles(x86)\\anaconda3\\python.exe', '--compatibility', 'off'] returned non-zero exit status 1
----------------------------------------
ERROR: Failed building wheel for pywinpty
Failed to build pywinpty
ERROR: Could not build wheels for pywinpty, which is required to install pyproject.toml-based projects
所以又去更新anaconda呗。但更新时也报错 :
1、Anaconda更新报错:CondaHTTPError: HTTP None None for url <https://mirrors.sjtug.sjtu.edu.cn/ 已解决
故只能转miniconda。
《miniconda清华源镜像链接》 下载一个安装包
参照 《miniconda安装教程1》 安装
当miniconda安装成功后
minconda 下使用 conda install matplotlib 安装,但是报如下错:
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(730): An error occurred while installing package 'defaults::qt-5.9.7-vc14h73c81de_0'.
Rolling back transaction: done
LinkError: post-link script failed for package defaults::qt-5.9.7-vc14h73c81de_0
location of failed script: D:\ProgramFiles(x86)\Miniconda3\Scripts\.qt-post-link.bat
==> script messages <==
<None>
==> script output <==
stdout:
stderr: 'D:\ProgramFiles' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
return code: 1
ERROR conda.core.link:_execute(730): An error occurred while installing package ‘defaults::qt-5.9.7-vc14h73c81de_0’
出现这个的问题应该是安装镜像地址的问题,国外镜像大多数比较麻烦,安装失败几率较大
所以使用阿里云镜像去安装,执行下列指令即可:
pip install -i http://mirrors.aliyun.com/pypi/simple/ matplotlib --trusted-host mirrors.aliyun.com
这时发现了个神奇的东西:
上面的报错 与 背景1中anaconda安装不成功时安装日志中报的错一样呀。我记得是一样,当时日志文档忘记保存了,因为对 ‘defaults::qt-5.9.7-vc14h73c81de_0’ 印象很深刻。所以现在怀疑是不是安装时源的问题,因为默认源是国外官方网站。但是疑问又是:安装软件时能换源?(待解决。因为回想这个问题时我电脑miniconda已经弄好了,不想再搞了,心太累了)
如何查看安装日志?
安装过程很顺利。需要注意打开方式只能是shell中输入 ’jupyter notebook‘ 打开。
简单安装,不带任何插件
带插件,写得也很详细
带插件界面配置
带插件换源
Jupyter使用详解
码字不易,谢谢点赞!!!
码字不易,谢谢点赞!!!
码字不易,谢谢点赞!!!