Tips

作者: __李大猫__ | 来源:发表于2019-04-10 16:19 被阅读0次

    0、python的格式化输出,可以用来输出分割填充符https://blog.csdn.net/brucewong0516/article/details/79931997
    1、用Git GUI TortoiseGit 做脚本代码在本地的版本管理的时候,遇到在不需要的地方误建了一个gti目录,想通过菜单操作的时候没找到删除的菜单。。最后的参考搜索到的解决方法,显示隐藏的.git文件,直接删除即可。
    2、conda和pip安装不上的包,可以手动下载后,cd到对应路径,再pip install文件名实现离线安装。参考
    https://stackoverflow.com/questions/51998310/pyaudio-portaudio-issue-python#
    Q:
    I installed pyaudio with anaconda python. Using conda install pyaudio on windows. It said it installed and it also installed PortAudio with it.

    However, when I create my file and run it now I get the following issue.

    I have no idea what is going on.

    Could not import the PyAudio C module '_portaudio'.
    Traceback (most recent call last):
    File "C:\Users\This PC\Desktop\Py\demo.py", line 2, in <module>
    import pyaudio
    File "C:\Users\This PC\Anaconda3\lib\site-packages\pyaudio.py", line 116, in <module>
    import _portaudio as pa
    ImportError: DLL load failed: The specified module could not be found.
    A:
    I faced a similar issue.

    The only way I was able to resolve this was by uninstalling anaconda, installing the latest version of python, and reinstalling the latest version of conda.

    I then downloaded the latest .whl file for pyaudio which can be found here: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio

    I moved this file from my downloads and into the site-packages folder of anaconda3: C:\Users\Projects\Anaconda3\Lib\site-packages

    Upon running the command 'pip install pyaudio' OR 'python -m pip install pyaudio' in the anaconda prompt I was good to go

    I hope this helps!

    相关文章

      网友评论

          本文标题:Tips

          本文链接:https://www.haomeiwen.com/subject/xbcoiqtx.html