marcomusy / pianoplayer

Automatic fingering generator for piano scores
MIT License
710 stars 81 forks source link

Installing without Anaconda on Windows 10 #27

Open marcomusy opened 4 years ago

marcomusy commented 4 years ago

Installing pianoplayer without Anaconda is possible with the following steps:

  1. If python is not already installed download it from https://www.python.org/downloads/windows/ (choose preferably version 3.6) and install it the usual way

  2. Click the Start button and start typing sysdm.cpl and click OK. This opens the System Properties window. Navigate to the Advanced tab and select Environment Variables On the lower panel select Path and click Edit

    image

    Add now two new entries: (path may change depending on your system, e.g. if you installed version 3.6) "C:\Python36" "C:\Python36\Scripts"

    Click OK and close.

  3. Click the Start button and start typing cmd and click OK. This opens a new terminal. Install now pianoplayer. Type: (this may take some time to complete) pip install pianoplayer

    If the above fails type instead: pip install music21 pip install --no-deps pianoplayer

  4. Place this file to your desktop. When you save it, make sure its extension is .bat (not .bat.txt) Edit it and change the path to: anaconda_path="C:\Python36"

  5. Double clicking the desktop icon will start the program.

Leiasticot commented 3 years ago

Hello ! First, thanks you for this program 👍 I got an error when I try to do "pip install pianoplayer" : "ERROR: Could not find a version that satisfies the requirement vtkplotter (from pianoplayer) (from versions: none) ERROR: No matching distribution found for vtkplotter (from pianoplayer)"

Idk what it can means, I tried to search on google but found nothing interesting... Can you help me pls ? Thanks you very much

marcomusy commented 3 years ago

that's super weird! vtkplotter does not exist anymore, the new name is vedo. What operative system are you using? try pip install --upgrade music21==6.1.0

pip install -U git+https://github.com/marcomusy/pianoplayer.git Or else: pip install --no-deps pianoplayer

Leiasticot commented 3 years ago

that's super weird! vtkplotter does not exist anymore, the new name is vedo. What operative system are you using? try pip install --upgrade music21==6.1.0

pip install -U git+https://github.com/marcomusy/pianoplayer.git Or else: pip install --no-deps pianoplayer

I'm using windows 10 The 2 first command worked, but now, nothing happen when I launch the bat (I changed the path) Idk why it doesn't work, I followed this guide

marcomusy commented 3 years ago

open a terminal with cmd (or anaconda terminal) and type pianoplayer, does that work? (that's why i hate windows :)

Leiasticot commented 3 years ago

open a terminal with cmd (or anaconda terminal) and type pianoplayer, does that work? (that's why i hate windows :)

Nop, it doesn't work... I will try with a ubuntu VM

marcomusy commented 3 years ago

it doesn't find the path installation i guess

imcaptor commented 2 years ago

How to run pianoplayer in mac? Thank you!

kchurch05 commented 2 years ago

Hi there- I've got all the packages installed and PATH variables set, but when I try to run pianoplayer from the cmd line, I get this error:

image

Tried changing HOME to HOMEPATH or HOMEDRIVE in activate.py, which yields this: image

Any suggestions? (Yes, I know my Python path variable is the super lazy version in APPDATA and I really need to just re-install it under C:. 🤣 )

marcomusy commented 2 years ago

Hi - sorry I'm not very familiar with windows OS ... I think there should be a bin area where executables are stored - if you manage to find it it should contain the pianoplayer executable or script. You may need to then type: python pianoplayer

marcomusy commented 2 years ago

How to run pianoplayer in mac? Thank you!

On mac - after pip install pianoplayer - you should be able to simply run it by command line!

kchurch05 commented 2 years ago

Got it working!

One thing I found (that I wasn't aware of) is that Windows had mucked up my 2.7 and 3.6 Python installs and was using 2.7 as the default, so every library and script was in 2.7. I ended up uninstalling 2.7, but it still wasn't working when I typed it in as "python pianoplayer." It would work if I double clicked on the pianoplayer file in file explorer and used "open with," but then the output.xml file was ending up in /Windows/System32 and it'd throw a permissions error.

I then noticed that if I just typed "python" in the command prompt, the #$& Windows store kept opening, which lead me to this: https://stackoverflow.com/questions/58754860/cmd-opens-window-store-when-i-type-python

Fixed that and am able to run in command prompt with "python pianoplayer" in the /bin directory. Make sure you're running it as admin.

Hope this helps!

Zeshan17 commented 2 years ago

image

Zeshan17 commented 2 years ago

image jesus christ

heyisben commented 1 year ago

My pianoplayer is at C:\Users****\AppData\Roaming\Python\Python39\Scripts\pianoplayer

**** is my user name.

maybe you should find where your pianoplayer is.

auravan commented 1 year ago

Hi,there. Here is a way to avoid bat file to run this porject in windows 11(surely),winodws10(not sure) if you have try to learn the d2l,you are likely to have download a miniconda. this vedio may help if so, try to use this terminal tpye in pip install pianoplayer

image

and then quit that find the path you download conda. image enter the "Scripts" folder, then right click, chose open in the terminal

image

type "python pianoplayer" and enter Done,enjoy it.

VIVEKPIANO commented 1 year ago

Hi Im a newbie Did all that was said. Finally when I double click the bat file this is what I get. I have no background in python. Please let me know where Im wrong Screenshot

howlup commented 8 months ago

it works for me in Win 11. Note that the python path may diffrenent and need to add to environment.

winoni71 commented 5 months ago

I get this error: "AttributeError: 'Part' object has no attribute 'flatten'".

millsj1134 commented 2 months ago

How to run pianoplayer in mac? Thank you!

On mac - after pip install pianoplayer - you should be able to simply run it by command line!

I am sorry I cannot seem to install. Don't know anything about Python. Is there an idiots guide for me? lol 😂