`
Jameslyy
  • 浏览: 386082 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Python TIPs

阅读更多

1. pip install jupter

环境:Mac OS

 

a. pip install jupyter

    Permission denied: '/Libarary/Python/2.7/site=-packages/pyzmq-16.0.2.dist-info'

 

b. sudo pip install jupyter

    The directory '/Users/zhaoguifu/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

    The directory '/Users/zhaoguifu/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

 

c. sudo -H pip --exists-action install jupyter 

    Operation not permitted: '/tmp/pip-3o  ......

 

d. sudo -H pip --exists-action i install jupyter --user -U

    Done. OK. Successful.

 

pip install -U --user --force jupyter 

 

jupyter 导出pif需要安装pandoc,brew install pandoc 。导出的pdf相当perfect。

 

2. install ipython

    环境: Mac OS,之前可能安装过ipython,但是终端又找不到ipython命令,重复安装也不行,试了好几次都不行。

    最终用如下命令安装:

        pip install -U --user --force ipython

        前提条件:在当前用户目录建立文件:.pydistutils.cfg ,输入如下内容:

        

[global]
verbose=1

[install]
install-scripts=$HOME/bin

[easy_install]
install-scripts=$HOME/bin

 

    这样,就会在当前用户目录下的bin目录生成可以执行的ipython。把bin目录加入$PATH变量,OK,就可以执行ipython了。

 

 

 

 

 

分享到:
评论

相关推荐

    Python-PythonTips一些初学者到中级用户的Python技巧

    Python Tips 一些初学者到中级用户的Python技巧

    leetcode2sumc-solutions:LeetCode及PythonTips部分题目求解

    pythonTips 上的题解 LeetCode主页:.已做题目数: 47 力码 数字 标题 困难 语 运行 头脑 01 二和 简单的 1138ms/34.16% 列表转字典,哈希表 07 反转整数 简单的 Java 33 毫秒/5.42% 09 回文数 简单的 Java 154ms/...

    小费数据集

    利用Python进行数据分析,小费数据集。

    Python Tips系列1

    各种python小技巧: 1. 列表相减:  列表A是一个完整轨迹,B是已走过的轨迹,求剩下的轨迹 # A: ['a','b','c','d'] # B: ['a','b'] In [89]: A = ['a','b','c','d'] In [90]: B = ['a','b'] In [92]: [x for x ...

    PythonTips:此仓库包含在http上发布的所有教程

    此仓库包含在发布的所有教程 ####编辑 我已经有一段时间没有更新这个仓库了。

    python-tips-tricks:Python技巧与窍门

    Python技巧与窍门有关Python的一些技巧和窍门。有用的文件-BeautifulSoup库的概述,以便解析XML文件。 -概述Oletools库,以便检查VB代码 -Pyspark库概述-Sweetviz库概述帮助您找到所有缺少的值并显示它们-获取文件的...

    五个Python编程Tips,帮你提高编码效率.doc

    五个Python编程Tips,帮你提高编码效率.doc

    Data-Wrangling-with-Python-Tips-and-Tools-to-Make-Your-Life-Easier.pdf.pdf

    Data-Wrangling-with-Python-Tips-and-Tools-to-Make-Your-Life-Easier.pdf

    Illustrated Guide to Python 3

    Packed with Useful Hints and Tips You'll learn the best practices without wasting time searching or trying to force Python to be like other languages. I've collected all the gems I've gleaned over ...

    Serious Python

    An indispensable collection of practical tips and real-world advice for tackling common Python problems and taking your code to the next level. Features interviews with high-profile Python developers ...

    tips.txt为python数据分析案例数据

    python数据分析案例数据 主要用于本人博客的部分文章案例数据使用。 单变量的样本分布检验(python3) 探索变量间关系 ....... 等文章的案例数据

    Clean Python.pdf

    The main goal of this book is to provide tips to Python developers of various levels so they can write better Python software and programs. This book gives you various techniques irrespective of the ...

    tips_python_

    python练习数据。机器人理财是将人工智能导入传统的理财顾问服务,并非由实体的机器人帮助客户理财,而是透过网络线上互动,依据需求者设定的投资目的及风险承受度,透过计算机程序的算法,提供自动化的投资组合建议...

    Python.Unit.Test.Automation.pdf

    Quickly learn how to automate unit testing of Python 3 code with Python 3 automation libraries, such as doctest, unittest, nose, nose2, and pytest. This book explores the ...Chapter 6: Tips and Tricks

    自动办公实用tips Python自动发送邮件

    使用Python实现自动化邮件发送,可以让你摆脱繁琐的重复性业务,可以节省非常多的时间。我们把报表做出来以后一般都是需要发给别人查看,对于一些每天需要发的报表或者是需要一次发送多份的报表,这个时候可以考虑...

    KBEngine-Python-Tips-master.zip

    这个项目是为了给KBEngine服务端编写Python脚本的时候,让IDE有语法提示。

    Data Wrangling with Python

    Data Wrangling with Python 全面掌握用Python进行爬虫抓取以及数据清洗与分析的方法 轻松实现高效数据处理 https://item.jd.com/12219342.html

    Python Graphics

    Python developers looking for tips on how to create illustrations and visualizations, as well as scientists, engineers, or students using Python. It assumes familiarity with vectors, matrices, ...

    Python小tips

    收录python基础库中sys、pathlib、arrow、configParser等基础库的用法,以及其它基础知识

    英文原版-Programming Python Programming Guide For Beginners Learn In a Day 2nd Edition

    These fun and easy tips transform the dreaded chore of learning a new programming language into a fun process. You'll be proud to show off your new skills to your friends and family! What are the ...

Global site tag (gtag.js) - Google Analytics