Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

requirements.sh is not working correctly #8

Open
arrickx opened this issue May 23, 2020 · 10 comments
Open

requirements.sh is not working correctly #8

arrickx opened this issue May 23, 2020 · 10 comments

Comments

@arrickx
Copy link

arrickx commented May 23, 2020

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

@arrickx
Copy link
Author

arrickx commented May 23, 2020

solution

subprocess.call(['./requirements.sh'], shell=True)


even it's not showing the error, but it does not install any packages as well.


so I switch back to your initial attempts.

!conda update --all --y
!pip install tensorflow-gpu==1.14.0
!pip install numpy==1.16.4
!pip install pretty_midi
!pip install pypianoroll
!pip install music21
!pip install seaborn
!pip install --ignore-installed moviepy

@atefth
Copy link

atefth commented May 24, 2020

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

Same issue, after using shell=True, pianoroll is not installed..

@weisurya
Copy link

I tried to add a new line to upgrade the pip into the latest version and it fixed my issue.

As simple as adding pip install --upgrade pip after conda update

@desirajusantosh
Copy link

ImportError: cannot import name 'Video'
by running from IPython.display import Video
Any resolution?

@VladT-Tempest
Copy link

FileNotFoundError: [Errno 2] No such file or directory: './requirements.sh': './requirements.sh'

Same issue, after using shell=True, pianoroll is not installed..

@MikZdanovich
Copy link

MikZdanovich commented Jun 26, 2020

Please update requirements, remove version of numpy, some of dependencies didn't work with this old version.
Sry, haven't captured a screenshot, or trace for u.
And add !conda install ffmpeg -y , to solve pypianoroll issue.

@s8
Copy link

s8 commented Jun 30, 2020

Solved by changing to conda_tensorflow_p36 kernel and moving everything from the ./requirements.sh straight into the notebook this way:

import subprocess
subprocess.call(["conda update --all --y"], shell=True)
subprocess.call(["pip install tensorflow-gpu==1.14.0"], shell=True)
subprocess.call(["pip install numpy==1.16.4"], shell=True)
subprocess.call(["pip install pretty_midi"], shell=True)
subprocess.call(["pip install pypianoroll"], shell=True)
subprocess.call(["pip install music21"], shell=True)
subprocess.call(["pip install seaborn"], shell=True)
subprocess.call(["pip install --ignore-installed moviepy"], shell=True)

@VladT-Tempest
Copy link

It works! thx.

@GregIzzo
Copy link

GregIzzo commented Jul 4, 2020

@s8 Thanks for solving this!

@Sparten-Ashvinee
Copy link

Instead of using subprocess, simply running this command in jupyter notebook can also help !bash requirements.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants