pythonYour PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x
2017-07-24 21:42
886 查看
在Mac中 出现: Your PYTHONPATH points to a site-packages dir for Python 2.x but you are running Python 3.x
明明在anaconda中创建的py2.7 和 py3.6环境,都连pip list 都报错这样的。比较神奇,倒腾了很久,重新安装再卸载anaconda。
依然没有办法解决,最后,找到之前设置的,export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH。进入usr/local/lib/python2.7,把python2.7这个文件给删除,完美的解决问题。
进入/usr/local/lib/ 的办法,在finder中前往-前往文件夹,填入/usr/local/lib于是就打开了mac系统被隐藏保护文件。
明明在anaconda中创建的py2.7 和 py3.6环境,都连pip list 都报错这样的。比较神奇,倒腾了很久,重新安装再卸载anaconda。
依然没有办法解决,最后,找到之前设置的,export PYTHONPATH=/usr/local/lib/python2.7/site-packages:$PYTHONPATH。进入usr/local/lib/python2.7,把python2.7这个文件给删除,完美的解决问题。
进入/usr/local/lib/ 的办法,在finder中前往-前往文件夹,填入/usr/local/lib于是就打开了mac系统被隐藏保护文件。
相关文章推荐
- 83.You are using Enterprise Manager to schedule backups for your database. Which type of script woul
- “You couldn’t see my tears cause I am in the water.“ Fish said to water.“But I could feel your tears cause you are in my heart..“ Answered water.
- Apache is running a threaded MPM, but your php module is not compiled to be threadsafe. you need to
- 138 Your database instance is running. You are not able to access Oracle Enterprise Manager Database
- 93.You are using flat files as the data source for one of your data warehousing applications. To opt
- 使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes
- Java SSH工程报错 Are you running on Java 1.4 or below with Apache Crimson? Upgrade to Apache Xerces (or Java 1.5) for full XSD suppo
- Your database instance is running with full workload after database creation. You have decided to us
- Android NDK: Are you sure your NDK_MODULE_PATH variable is properly defined
- 想做一个SSL代理的集群中,有很多问题需要解决,I am all grateful to you for your advice
- MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for details about the error
- 44.Your database is functional with a peak load for the last one hour. You want to preserve the perf
- 166 You are managing a 24*7 database. The backup strategy for the database is to perform user-manage
- where would you like to install the boot loader for your system?
- 使用ec编译cocos项目是出现Android.mk文件报错Are you sure your NDK_MODULE_PATH variable is properly defined 的解决办法
- Whoops! Sorry, but you are not allowed to perform the action requested.
- Are you looking for a way to get the entire text of a word document into a RichEdit without using the Clipboard?
- Write Code as If You Had to Support It for the Rest of Your Life
- How to generate an RSS feed for your web site using ASP.NET
- 插入mysql语句报错:1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near