Python TIPs
1.pip install jpter
環境:Mac OS
a.pip install jupyter
Permission denied:'/Libarary/Python/2.7/site=-package/pyzmq-16.0.2.dist-info'
b.sudo pip install jupyter
The directory'/Users/zhaoguifu/Library/Cachems/pip/http'r parent directory is not owned by the current user and the cache has bens disable.Please checher the permissions and exners
The directory'/Users/zhaoguifu/Library/Cachecs/pip'or its parent directory is not owned by the current user and caching whers has bens disable.checions.checions and the permissions and owner of the atwarectorth。
c. sudo-H pip--exists-action install jpyter
Operation not permitted:'/tmp/pip-3 o ......
d. sudo-H pip--exists-action i install jupyter--user-U
Doone.OK.Success ful.
pip install-U--user--force jpyter
jupyterがpifをエクスポートするには、pandoc、brew install pandocをインストールする必要があります。エクスポートしたpdfはかなりperfectです。
2.install ipython
環境:Mac OSは、以前はipythonをインストールしたことがあるかもしれませんが、端末はipythonコマンドが見つからないので、繰り返しインストールしてもだめです。何回試してもだめです。
最終的には以下のコマンドでインストールします。
pip install-U--user--force ipython
前提条件:現在のユーザディレクトリにファイルを作成します。pydistutils.cfgは下記の内容を入力します。
このようにして、現在のユーザディレクトリの下のbinディレクトリで実行可能なipythonが生成される。binディレクトリを$PATH変数に加えると、OKでipythoonを実行できます。
環境:Mac OS
a.pip install jupyter
Permission denied:'/Libarary/Python/2.7/site=-package/pyzmq-16.0.2.dist-info'
b.sudo pip install jupyter
The directory'/Users/zhaoguifu/Library/Cachems/pip/http'r parent directory is not owned by the current user and the cache has bens disable.Please checher the permissions and exners
The directory'/Users/zhaoguifu/Library/Cachecs/pip'or its parent directory is not owned by the current user and caching whers has bens disable.checions.checions and the permissions and owner of the atwarectorth。
c. sudo-H pip--exists-action install jpyter
Operation not permitted:'/tmp/pip-3 o ......
d. sudo-H pip--exists-action i install jupyter--user-U
Doone.OK.Success ful.
pip install-U--user--force jpyter
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でipythoonを実行できます。