MacOS 安装MysqlDB 问题解决方案( 解决 IndexError: string index out of range)

pip install MySQL-python时报错如下:

Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/wk/541xl0m91gj7562sn0ddpjg9k8mh7p/T/pip-install-FF6W2Y/MySQL-python/

解决方案:brew install mysql
brew unlink mysql
brew install mysql-connector-c
sed -i -e ‘s/libs="$libs -l "/libs="$libs -lmysqlclient -lssl -lcrypto"/g‘ /usr/local/bin/mysql_config
pip install MySQL-python
brew unlink mysql-connector-c
brew link --overwrite mysql
尊重原创 原文地址:https://blog.csdn.net/eri_feng/article/details/81224106

原文地址:https://www.cnblogs.com/LiuBingBlogs/p/9823248.html

时间: 2024-07-29 04:49:40

MacOS 安装MysqlDB 问题解决方案( 解决 IndexError: string index out of range)的相关文章

【解决问题.思路篇】StringIndexOutOfBoundsException:String index out of range: -1

看到题目,就应该能想到应该是字符串过长引起的问题.下面咱们分析一下. 报错: 严重: Servlet.service()for servlet jsp threw exception java.lang.StringIndexOutOfBoundsException:String index out of range: -1 根据代码跟踪,发现是首页数据加载完之后就会报错,所以继续跟踪,发现了问题. 当我们输入了访问地址:localhost:8080页面以及数据加载完就会报错,抛异常.但是不影响

Hibernate String index out of range 0 异常的一种情况

Hibernate String index out of range 0 异常 执行代码如下: 因为数据库有两个字段值是空 不是null ,所以hibernate抛出 String index out of range 0 异常

java.lang.StringIndexOutOfBoundsException: String index out of range: 0错误的原因

java.lang.StringIndexOutOfBoundsException: String index out of range: 0 在hibernate做查询的时候 List<?> listObject = sqlQuery .setFirstResult((currentPageIndex - 2) * showCounts) .setMaxResults(showCounts) .setResultTransformer( org.hibernate.transform.Tra

Spring Boot 启动报错 Exception in thread &quot;main&quot; java.lang.StringIndexOutOfBoundsException: String index out of range: 37

使用命令 java -jar springBoot.jar  启动项目,结果报错如下: Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: 37 at java.lang.String.substring(String.java:1963) at org.springframework.boot.loader.jar.JarFile.create

if(str(saved_path).split(&#39;.&#39;)[1].lower() != &#39;gif&#39;): IndexError: list index out of range ERROR basehttp 124 &quot;POST /ckeditor/upload/ HTTP/1.1&quot; 500 96995

用python写Django项目的时候 用了CKEditor富文本编辑器,编辑文本,上传图片的时候,当我点击上传到服务器,一开始网页 页面弹出 '不正确的服务器响应',我上网查,看到说版本的原因,我又去降pip install django-ckeditor==4.5.3 然后又出来其他问题 TypeError: build attrs() got an unexpected keyword argument 'name'TypeError:build attrs()得到了一个意想不到的关键字参

Mac MySQLdb模块安装,可算解决了

转载:http://blog.csdn.net/janronehoo/article/details/25207825 短评:这篇文章感觉是比较全面解决Mac MySQLdb模块安装问题的文章了,特别转载一下. 连错误都解决了...爽,话说困扰我半个月MySQLdb,差点就要放弃了 Python 2.7.3. MySQL-python包中,因此无论下载还是在pip中search,都应该是搜寻MySQL-python. 下载MySQLdb MySQL-python-1.2.4b4.tar,下载后解

Windows下安装MySQLdb(mysql-python)报错解决

在安装MySQLdb时报错 Microsoft Visual C++ 9.0 is required Unable to find.. 下载并安装解决 Microsoft Visual C++ Compiler for Python 2.7 再次安装MySQLdb遇到报错 _mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No such file or directory 下载并安装解决 MyS

安装MySQldb出错解决方法

sudo yum install mysql-devel sudo yum install python-devel _mysql.c:36:23: error: my_config.h: No such file or directory _mysql.c:38:19: error: mysql.h: No such file or directory _mysql.c:39:26: error: mysqld_error.h: No such file or directory _mysql

MacOs 安装cordova报无权访问题解决方案

在MacOS安装cordova后,执行cordova -v报错: Error: EACCES: permission denied, open '/Users/jianuonuo/.config/configstore/insight-cordova.json' 使用sudo给这个文件或文件夹授权后,不起作用. 解决方案: sudo chown -R $USER:$GROUP ~/.npm sudo chown -R $USER:$GROUP ~/.config 原文地址:https://www