Pythonocc环境建立,2021年12月16日实测


pythonocc环境建立:

首先是要安装anaconda,然后打开anaconda prompt复制以下命令,逐步安装。


1、 conda清华安装源

conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/fastai/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
conda config --append channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/

2、Pythonocc环境的配置

WIN环境目前只能用Pythonocc7.4.0,

conda create -n pythonocct740 -c dlr-sc -c pythonocc python=3.7 pythonocc-core=7.4.0 
conda activate pythonocct740
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pyqt5

Linux则可以用7.5.1,这个版本好像自己会安装PyQt?

conda create --name=pyoccenv python=3.7
source activate pyoccenv
conda install -c conda-forge pythonocc-core=7.5.1 occt=7.5.1

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM