jcjohnson / neural-style

Torch implementation of neural style algorithm
MIT License
18.31k stars 2.7k forks source link

install issues #189

Open JeffCrusey opened 8 years ago

JeffCrusey commented 8 years ago

Im not sure why my issue is installing torch7 but receive the following error message

Error: could not find ipython in PATH. Do you have it installed? cd build && make install sh: line 0: cd: build: No such file or directory

Error: Build error: Failed installing.

Not updating your shell profile. You might want to add the following lines to your shell profile:

. /Users/jeffcrusey/torch/install/bin/torch-activate

Then when i try to source the bashrc file i get an error saying it doesnt exist. Anyone have any ideas how to fix this? Thx

jeremymarino commented 8 years ago

Hey,

I've had a few issues myself. Started a thread in the Ubuntu forums. A kind person walked me through it . . . here's the link.

http://ubuntuforums.org/showthread.php?t=2317261&page=2

YichenGong commented 8 years ago

It might be too late for you, but I think it helps people who meet the same problem in future

You can fix it by:

if you are using a ubuntu: echo ". /Users/jeffcrusey/torch/install/bin/torch-activate" >~/.bashrc source ~/.bashrc

if you are using linux zsh echo ". /Users/jeffcrusey/torch/install/bin/torch-activate" >~/.zshrc source ~/.zshrc

if you are using OS X or in linux non above echo ". /Users/jeffcrusey/torch/install/bin/torch-activate" >~/.profile source ~/.profile

thomasmost commented 6 years ago

@YichenGong that solved it for me! Thank you!

MrThiago commented 5 years ago

@YichenGong thanks. my advice woud be :

if you are using OS X or in linux echo ". /Users/jeffcrusey/torch/install/bin/torch-activate" >~/.torch_profile source ~/.torch_profile

Just in case the user has already set up others command in their default .profile . like myself, I had problems with my installations of virtualenvs