Python环境安装记录及笔记

  1. 不要通过window自带的商店安装python
  2. 通过官网下载,下载慢请使用链接:https://pan.baidu.com/s/1T2KgF1YJUqdwx_0N1zaEcg
    提取码:b1uz(64位)链接:https://pan.baidu.com/s/1hUpzLWYpx0gx3uzrmk6yig
    提取码:fjcj(32位)
  3. 修改pip镜像源,参考https://www.cnblogs.com/songzhixue/p/11296720.html
  4. pyinstaller打包,参考:https://blog.csdn.net/creeperone/article/details/80957954
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\App Paths\\cloudmusic.exe")#正确写法
key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE/WOW6432Node/Microsoft/Windows/CurrentVersion/App Paths/cloudmusic.exe")#错误写法
  1. 在这里插入图片描述如果名称为默认,value = winreg.QueryValueEx(key,"")[0]默认,用空字符串代替
  2. 在这里插入图片描述用pyinstaller打包的exe出以上问题的方法;参考:在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_21919621/article/details/107179960