私はmac osx el capitanを使用しています。 私はエラーなしで最初の2つの部分をした:私は第三の部分を行うとシェルプロファイルによるトーチのインストールエラー
git clone https://github.com/torch/distro.git ~/torch --recursive
cd ~/torch; bash install-deps;
、./install.sh
は、私は次のエラーを取得する:
私は信じて、エラーの2つの部分があります。 1つはiPythonの使用に関するもので、2番目のものは.profile
と関係があります。ここで私を助けてください。
cp -r ~/.ipython/profile_torch ~/.ipython/profile_itorch
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/Users/PJ/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1" && make
else
echo "Error: could not find ipython in PATH. Do you have it installed?"
fi
rm: /Users/PJ/.ipython/profile_torch/ipython_config.py: Permission denied
rm: /Users/PJ/.ipython/profile_torch/ipython_kernel_config.py: Permission denied
rm: /Users/PJ/.ipython/profile_torch/log: Permission denied
rm: /Users/PJ/.ipython/profile_torch/pid: Permission denied
rm: /Users/PJ/.ipython/profile_torch/security: Permission denied
rm: /Users/PJ/.ipython/profile_torch/startup/README: Permission denied
rm: /Users/PJ/.ipython/profile_torch/startup: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/base/images/ipynblogo.png: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/base/images: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/base: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/custom/custom.css: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/custom/custom.js: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static/custom: Permission denied
rm: /Users/PJ/.ipython/profile_torch/static: Permission denied
rm: /Users/PJ/.ipython/profile_torch: Directory not empty
sh: line 6: /Users/PJ/.ipython/profile_torch/ipython_config.py: Permission denied
sh: line 7: /Users/PJ/.ipython/profile_torch/ipython_config.py: Permission denied
sh: line 8: /Users/PJ/.ipython/profile_torch/ipython_config.py: Permission denied
cp: /Users/PJ/.ipython/profile_torch/static/base/images/ipynblogo.png: Permission denied
cp: /Users/PJ/.ipython/profile_torch/static/custom/custom.js: Permission denied
cp: /Users/PJ/.ipython/profile_torch/static/custom/custom.css: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/ipython_config.py: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/ipython_kernel_config.py: Permission denied
cp: /Users/PJ/.ipython/profile_torch/pid: unable to copy extended attributes to /Users/PJ/.ipython/profile_itorch/profile_torch/pid: Permission denied
cp: /Users/PJ/.ipython/profile_torch/pid: Permission denied
cp: /Users/PJ/.ipython/profile_torch/security: unable to copy extended attributes to /Users/PJ/.ipython/profile_itorch/profile_torch/security: Permission denied
cp: /Users/PJ/.ipython/profile_torch/security: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/startup/README: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/static/base/images/ipynblogo.png: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/static/custom/custom.css: Permission denied
cp: /Users/PJ/.ipython/profile_itorch/profile_torch/static/custom/custom.js: Permission denied
-- Found Torch7 in /Users/PJ/torch/install
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/PJ/torch/extra/iTorch/build
cd build && make install
Install the project...
-- Install configuration: "Release"
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/_env.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/bokeh.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/completer.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/gfx.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/init.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/IOHandler.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/main.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/Plot.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/test.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/util.lua
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/bokeh-0.7.0.min.js
-- Installing: /Users/PJ/torch/install/lib/luarocks/rocks/itorch/scm-1/lua/itorch/bokeh-0.7.0.min.css
Updating manifest for /Users/PJ/torch/install/lib/luarocks/rocks
itorch scm-1 is now built and installed in /Users/PJ/torch/install/ (license: BSD)
Not updating your shell profile.
You might want to
add the following lines to your shell profile:
. /Users/PJ/torch/install/bin/torch-activate
はい、私は既にipythonをインストールしています。これはパーミッションと関係があります。私はそれを修正する方法を知らない。 –
'' 'エラー:PATH''にipythonが見つかりませんでした。 '' 'PATH =/dir/where/ipython/located /:$ PATH''のように手動でPATHに追加してみてください。 – dekkard