xampp in ubuntu下命令行启动mysql报错: reddevil@reddevil-Lenovo:/opt/lampp$ ./bin/mysql -u root -p Enter password: ERROR (HY000): Can't connect to local MySQL server through socket '/opt/lampp/var/mysql/mysql.sock' (2) 启动mysql服务: reddevil@reddevil-Lenovo:/opt
把系统的python版本从默认的2切换到3后,使用pip3安装依赖报错,如下: Traceback (most recent call last): File , in <module> from pip import main ImportError: cannot import name 'main' 解决办法: 解决:pip文件在usr/bin目录下,cd进去,进行以下修改 把下面的三行 from pip import main if __name__ == '__main__': sy
当我们在调用python时,如果传入的参数数据量过大时会报错 python.exe: The filename or extension is too long. 这时候我们的解决办法是放弃传参,将想要传的参数先存到临时文件txt中或者是写到数据库中,然后在python文件中读取相应的txt文档或者数据库即可.
1.mac下python环境pip报错: issuserdeMacBook-Pro:~ issuser$ pip install pyinstallerCollecting pyinstaller Could not fetch URL https://pypi.python.org/simple/pyinstaller/: There was a problem confirming the ssl certificate: [SSL: TLSV1_ALERT_PROTOCOL_VERSIO