Code Monkey home page Code Monkey logo

Comments (4)

Rainbow-Dreamer avatar Rainbow-Dreamer commented on June 2, 2024

你好,最近有一个版本上传有点问题,之后我上传了目前的最新版本1.60,pip安装是正常的了,你可以先卸载一下pip uninstall musicpy,然后重新安装pip install musicpy,看看显示安装的版本是不是1.60

from musicpy.

donmor avatar donmor commented on June 2, 2024

刚刚试了pip下来1.62版本,还是装不上:

Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting musicpy
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/b7/c3/856be997d4fc3585ea5eeea3161aba81f5a30c7d13fc1a3837ee31121a9a/musicpy-1.62.tar.gz (99 kB)
Requirement already satisfied: mido in /home/donmor/.local/lib/python3.6/site-packages (from musicpy) (1.2.9)
Requirement already satisfied: midiutil in /home/donmor/.local/lib/python3.6/site-packages (from musicpy) (1.2.1)
Requirement already satisfied: pygame in /home/donmor/.local/lib/python3.6/site-packages (from musicpy) (2.0.1)
Requirement already satisfied: pillow in /home/donmor/.local/lib/python3.6/site-packages (from musicpy) (8.1.0)
Building wheels for collected packages: musicpy
  Building wheel for musicpy (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-a9mw1xpj
       cwd: /tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/
  Complete output (28 lines):
  /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
    warnings.warn(msg)
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/musicpy
  copying musicpy/__init__.py -> build/lib/musicpy
  copying musicpy/structures.py -> build/lib/musicpy
  copying musicpy/match.py -> build/lib/musicpy
  copying musicpy/database.py -> build/lib/musicpy
  copying musicpy/musicpy.py -> build/lib/musicpy
  running egg_info
  writing musicpy.egg-info/PKG-INFO
  writing dependency_links to musicpy.egg-info/dependency_links.txt
  writing requirements to musicpy.egg-info/requires.txt
  writing top-level names to musicpy.egg-info/top_level.txt
  reading manifest file 'musicpy.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'musicpy.egg-info/SOURCES.txt'
  creating build/lib/musicpy/__pycache__
  copying musicpy/__pycache__/__init__.cpython-37.pyc -> build/lib/musicpy/__pycache__
  copying musicpy/__pycache__/database.cpython-37.pyc -> build/lib/musicpy/__pycache__
  copying musicpy/__pycache__/match.cpython-37.pyc -> build/lib/musicpy/__pycache__
  copying musicpy/__pycache__/musicpy.cpython-37.pyc -> build/lib/musicpy/__pycache__
  copying musicpy/__pycache__/structures.cpython-37.pyc -> build/lib/musicpy/__pycache__
  error: can't copy 'musicpy/__pycache__': doesn't exist or not a regular file
  ----------------------------------------
  ERROR: Failed building wheel for musicpy
  Running setup.py clean for musicpy
Failed to build musicpy
Installing collected packages: musicpy
    Running setup.py install for musicpy ... error
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-p9kpepkk/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/donmor/.local/include/python3.6m/musicpy
         cwd: /tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/
    Complete output (28 lines):
    /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    running install
    running build
    running build_py
    creating build
    creating build/lib
    creating build/lib/musicpy
    copying musicpy/__init__.py -> build/lib/musicpy
    copying musicpy/structures.py -> build/lib/musicpy
    copying musicpy/match.py -> build/lib/musicpy
    copying musicpy/database.py -> build/lib/musicpy
    copying musicpy/musicpy.py -> build/lib/musicpy
    running egg_info
    writing musicpy.egg-info/PKG-INFO
    writing dependency_links to musicpy.egg-info/dependency_links.txt
    writing requirements to musicpy.egg-info/requires.txt
    writing top-level names to musicpy.egg-info/top_level.txt
    reading manifest file 'musicpy.egg-info/SOURCES.txt'
    reading manifest template 'MANIFEST.in'
    writing manifest file 'musicpy.egg-info/SOURCES.txt'
    creating build/lib/musicpy/__pycache__
    copying musicpy/__pycache__/__init__.cpython-37.pyc -> build/lib/musicpy/__pycache__
    copying musicpy/__pycache__/database.cpython-37.pyc -> build/lib/musicpy/__pycache__
    copying musicpy/__pycache__/match.cpython-37.pyc -> build/lib/musicpy/__pycache__
    copying musicpy/__pycache__/musicpy.cpython-37.pyc -> build/lib/musicpy/__pycache__
    copying musicpy/__pycache__/structures.cpython-37.pyc -> build/lib/musicpy/__pycache__
    error: can't copy 'musicpy/__pycache__': doesn't exist or not a regular file
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"'; __file__='"'"'/tmp/pip-install-jm6oxwrp/musicpy_d822e30197af493c951de19c6e325dd1/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-p9kpepkk/install-record.txt --single-version-externally-managed --user --prefix= --compile --install-headers /home/donmor/.local/include/python3.6m/musicpy Check the logs for full command output.

from musicpy.

Rainbow-Dreamer avatar Rainbow-Dreamer commented on June 2, 2024

我这边现在试了一下,安装最新版本1.62是可以完全正常安装的,我的系统是win10,在macOS和linux系统应该pip也是都可以正常安装的,之前也没有任何人跟我反应过有类似的问题,所以我不太清楚是怎么回事,有两种办法可以解决这个问题,第一个办法,在浏览器里直接下载musicpy文件夹,直接点击网址下载https://github.com/Rainbow-Dreamer/musicpy/archive/master.zip 然后解压出来文件夹,把文件夹里面的musicpy文件夹放到你的python的安装文件夹的site-packages文件夹里,如果是windows那就默认是C:\Users\Administrator\AppData\Local\Programs\Python\Python某个版本\Lib\site-packages 然后你就可以正常使用了。第二个办法,有可能是因为你的setuptools版本太低了,可以升级一下,如果是linux,在cmd输入sudo pip install --upgrade setuptools -user然后运行,如果是windows或者macOS则输入pip install --upgrade setuptools然后运行,之后重新尝试pip install musicpy安装。希望能够解决你的问题。

from musicpy.

Rainbow-Dreamer avatar Rainbow-Dreamer commented on June 2, 2024

如果还有遇到问题,可以尝试安装下最新的1.63版本,把之前你遇到的错误代码中的__pycache__文件夹去掉了,应该可以正常安装。

from musicpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.