anaconda配置alpha shapes
时间: 2023-11-20 15:56:07 浏览: 212
Python库 | alphashape-1.2.0.tar.gz
5星 · 资源好评率100%
根据提供的引用内容,可以看出配置alpha shapes需要安装一些依赖包,而这些依赖包可以通过anaconda进行安装。下面是配置alpha shapes的步骤:
1.安装anaconda3并安装完成后,打开anaconda prompt。
2.创建一个名为“tensorflow1”的虚拟环境,并激活该环境:
```shell
conda create -n tensorflow1 python=3.6
conda activate tensorflow1
```
3.安装tensorflow和其他依赖包:
```shell
pip install tensorflow==1.15.0
pip install pillow lxml jupyter matplotlib cython contextlib2
```
4.下载tensorflow/models仓库:
```shell
git clone https://github.com/tensorflow/models.git
```
5.安装protobuf编译器:
```shell
conda install protobuf
```
6.编译protobuf文件:
```shell
cd models/research/
protoc object_detection/protos/*.proto --python_out=.
```
7.将models/research和models/research/slim目录添加到PYTHONPATH环境变量中:
```shell
set PYTHONPATH=%PYTHONPATH%;C:\path\to\models;C:\path\to\models\research\slim
```
8.测试安装是否成功:
```shell
python object_detection/builders/model_builder_test.py
```
至此,alpha shapes的配置已经完成。
阅读全文