阅读前请看一下:我是一个热衷于记录的人,每次写博客会反复研读,尽量不断提升博客质量。文章设置为仅粉丝可见,是因为写博客确实花了不少精力。希望互相进步谢谢!!
文章目录
- 阅读前请看一下:我是一个热衷于记录的人,每次写博客会反复研读,尽量不断提升博客质量。文章设置为仅粉丝可见,是因为写博客确实花了不少精力。希望互相进步谢谢!!
- 1、背景
- 2、minconda安装
- 3、matplotlib 安装与报错
- 4、安装jupyter及使用
1、背景
win11,Anaconda只能安装下列版本
在此之后的版本在安装后都会出现下列问题:
- 1、Scripts等大量文件夹丢失;
- 2、Scripts文件夹缺失conda.exe从而导致conda不是内或外部命令无法执行;
- 3、开始栏里无anaconda快捷方式或者仅有anaconda prompt一个快捷方式
此论坛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呗。但更新时也报错 :
故只能转miniconda。
2、minconda安装
《miniconda清华源镜像链接》 下载一个安装包
参照 《miniconda安装教程1》 安装
当miniconda安装成功后
3、matplotlib 安装与报错
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:
这时发现了个神奇的东西:
上面的报错 与 背景1中anaconda安装不成功时安装日志中报的错一样呀。我记得是一样,当时日志文档忘记保存了,因为对 ‘defaults::qt-5.9.7-vc14h73c81de_0’ 印象很深刻。所以现在怀疑是不是安装时源的问题,因为默认源是国外官方网站。但是疑问又是:安装软件时能换源?(待解决。因为回想这个问题时我电脑miniconda已经弄好了,不想再搞了,心太累了)
如何查看安装日志?
- 安装时右键即可复制,复制完粘贴到记事本中即可
4、安装jupyter及使用
安装过程很顺利。需要注意打开方式只能是shell中输入 ‘jupyter notebook’ 打开。
码字不易,谢谢点赞!!!
码字不易,谢谢点赞!!!
码字不易,谢谢点赞!!!
Original: https://blog.csdn.net/qq_40967086/article/details/126801731
Author: 一只菜得不行的鸟
Title: minconda 安装教程及matplotlib 安装,但是报错ERROR conda.core.link:_execute(730): An error occurre
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/771842/
转载文章受原作者版权保护。转载请注明原作者出处!