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

Installing without Anaconda on Windows 10 #27

Open
marcomusy opened this issue Aug 23, 2020 · 19 comments
Open

Installing without Anaconda on Windows 10 #27

marcomusy opened this issue Aug 23, 2020 · 19 comments
Labels
Info Information

Comments

@marcomusy
Copy link
Owner

marcomusy commented Aug 23, 2020

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.

@marcomusy marcomusy pinned this issue Aug 23, 2020
@marcomusy marcomusy added the Info Information label Aug 23, 2020
@Leiasticot
Copy link

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
Copy link
Owner Author

marcomusy commented Jan 9, 2021

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
Copy link

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
Copy link
Owner Author

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

@Leiasticot
Copy link

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
Copy link
Owner Author

it doesn't find the path installation i guess

@imcaptor
Copy link

How to run pianoplayer in mac? Thank you!

@kchurch05
Copy link

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
Copy link
Owner Author

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
Copy link
Owner Author

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
Copy link

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
Copy link

Zeshan17 commented Apr 4, 2022

image

@Zeshan17
Copy link

image
jesus christ

@yangbentw
Copy link

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
Copy link

auravan commented May 11, 2023

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
Copy link

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
Copy link

howlup commented Jan 6, 2024

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

@winoni71
Copy link

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

@millsj1134
Copy link

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 😂

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

No branches or pull requests