安装python模块,这样我就可以在任何地方使用它



我克隆了https://github.com/deepmind/spiral.git到~/screal并安装了python模块。我只能在~/screal上使用它。如何在其他目录中使用它?

根据repo的自述文件,以下是安装模块的步骤:

  1. 将repo克隆到一个目录并更新所有子模块:
git clone https://github.com/deepmind/spiral.git
cd spiral
git submodule update --init --recursive
  1. 安装依赖项:
apt-get install cmake pkg-config protobuf-compiler libjson-c-dev intltool libpython3-dev python3-pip
pip3 install six setuptools numpy scipy tensorflow==1.14 tensorflow-hub dm-sonnet==1.35
  1. 安装软件包本身:
python3 setup.py develop --user
  1. 要正确运行libmypaintFluid paint,您需要运行:
wget -c https://github.com/mypaint/mypaint-brushes/archive/v1.3.0.tar.gz -O - | tar -xz -C third_party
git clone https://github.com/dli/paint third_party/paint
patch third_party/paint/shaders/setbristles.frag third_party/paint-setbristles.patch

编辑:更新了安装包所需的步骤

相关内容

最新更新