Install Torch7. IPython installation error (mac)

I am trying to install Torch7 on my Mac, however the installation stops at this point:

Not updating your shell profile. You might want to add the following lines to your shell profile: export PATH=/Users/khsiddiqui/torch/install/bin:$PATH export LD_LIBRARY_PATH=/Users/khsiddiqui/torch/install/lib:$LD_LIBRARY_PATH export DYLD_LIBRARY_PATH=/Users/khsiddiqui/torch/install/lib:$DYLD_LIBRARY_PATH 

Not sure what that means. Next I got the following conclusion

 echo "Error: could not find ipython in PATH. Do you have it installed?" fi 

However, iPython is installed as I can confirm:

 No update necessary, 'ipython' is up-to-date. ipython-3.0.0-3.egg was installed on: Thu Apr 9 18:12:32 2015 kamransiquisMBP:torch khsiddiqui$ env | grep PATH PATH=/Users/khsiddiqui/Library/Enthought/Canopy_64bit/User/bin: /usr/local/bin: /usr/bin: /bin: /usr/sbin: /sbin: /opt/X11/bin: /usr/texbin 

Trying to find .bashrc file

 %edit .bashrc WARNING: Argument given (.bashrc) can't be found as a variable or as a filename. 

kamransiquisMBP:torch khsiddiqui$ ls -ld ~/.* drwxr-xr-x+ 43 khsiddiqui staff 1462 12 Apr 01:15 /Users/khsiddiqui/. drwxr-xr-x 6 root admin 204 19 Oct 17:34 /Users/khsiddiqui/.. -r-------- 1 khsiddiqui staff 7 19 Oct 17:34 /Users/khsiddiqui/.CFUserTextEncoding -rw-r--r--@ 1 khsiddiqui staff 16388 26 Mar 23:59 /Users/khsiddiqui/.DS_Store drwxr-xr-x 3 khsiddiqui staff 102 8 Sep 2014 /Users/khsiddiqui/.R -rw-r--r-- 1 khsiddiqui staff 728832 2 Apr 17:21 /Users/khsiddiqui/.RData -rw-r--r-- 1 khsiddiqui staff 1101 20 Oct 02:58 /Users/khsiddiqui/.Rapp.history -rw-r--r-- 1 khsiddiqui staff 6314 2 Apr 17:21 /Users/khsiddiqui/.Rhistory drwx------ 22 khsiddiqui staff 748 12 Apr 01:25 /Users/khsiddiqui/.Trash -rw------- 1 khsiddiqui staff 1860 9 Apr 22:15 /Users/khsiddiqui/.bash_history drwxr-xr-x 4 khsiddiqui staff 136 9 Apr 17:57 /Users/khsiddiqui/.cache drwx------ 18 khsiddiqui staff 612 12 Apr 20:09 /Users/khsiddiqui/.canopy drwxr-xr-x 3 khsiddiqui staff 102 12 Apr 01:15 /Users/khsiddiqui/.conda drwxr-xr-x 2 khsiddiqui staff 68 12 Apr 01:11 /Users/khsiddiqui/.continuum drwx------ 3 khsiddiqui staff 102 30 Jul 2010 /Users/khsiddiqui/.cups drwx------ 10 khsiddiqui staff 340 2 Apr 17:26 /Users/khsiddiqui/.dropbox -rw-r--r-- 1 khsiddiqui staff 2525 12 Apr 16:56 /Users/khsiddiqui/.enstaller4rc drwxr-xr-x 9 khsiddiqui staff 306 9 Apr 22:25 /Users/khsiddiqui/.ipython drwxr-xr-x 4 khsiddiqui staff 136 12 Apr 16:57 /Users/khsiddiqui/.matplotlib -rw-r--r-- 1 khsiddiqui staff 340 12 Apr 01:12 /Users/khsiddiqui/.profile -rw-r--r-- 1 khsiddiqui staff 251 28 Mar 13:45 /Users/khsiddiqui/.profile-anaconda.bak drwxr-xr-x 15 khsiddiqui staff 510 2 Apr 17:21 /Users/khsiddiqui/.rstudio-desktop drwxr-xr-x 6 khsiddiqui staff 204 20 Oct 19:21 /Users/khsiddiqui/.subversion -rw------- 1 khsiddiqui staff 625 9 Apr 21:33 /Users/khsiddiqui/.viminfo

+6
source share
3 answers

I had a similar problem and it was resolved, maybe this could help others.

Here was the end of the second installation of the script, and the command "th" did not work:

 Not updating your shell profile. You might want to add the following lines to your shell profile: . /Users/myusername/torch/install/bin/torch-activate 

This article describes how your shell profile is organized: https://serverfault.com/questions/110065/what-profile-is-my-current-shell-using

I understood that in my user folder / Users / myusername / i there was a file “.bash_profile”, I inserted the line “./Users/myusername/torch/install/bin/torch-activate” inside but it didn’t work (the command “th” didn’t recognized in the terminal).

So, in the same directory / Users / myusername / folder, I created a .profile file and inserted the line "./Users/myusername/torch/install/bin/torch-activate" inside.

Then the command "th" works fine;)

+6
source

First, IPython can be installed, but is not covered by the installation process.

If you enter which ipython at the command line, it will tell you where it is installed. Then echo $PATH display your PATH variable, which should contain the directory containing IPython. If this is not the case, you will need to edit the PATH statement in your .bashrc file to add it.

Secondly, .bashrc is the file that the shell starts at startup and should be in your home directory, so type cd at the command line and you will be there. Then use a text editor such as Text Edit to edit it. In your case, you do not have a .bashrc , instead, some things are installed in a file called .profile . You should probably check the contents of this file.

Finally, I will not run any of these commands from IPython. Run them (and the torch installation process) from the shell.

In addition, I noticed that you have a file named "anaconda". Have you installed "Anaconda"?

0
source

I use OSX Sierra and get the same error message every time. I modified the .bash-profile and .profile files. I tried to add these lines, but none of them worked.

~ / torch / install / bin / torch-activate. / Users / myusername / torch / install / bin / torch-activate source = ~ / torch / install / bin / torch-Activate

I do not have a .bashrc file and I am not sure where the / etc / ... file is located, because I do not see the etc folder in my home directory. can anyone help me please?

0
source

Source: https://habr.com/ru/post/985004/


All Articles