Giter VIP home page Giter VIP logo

py385_env_kan's Introduction

python385_env

USBメモリがあればどこでも使えるPython + JupyterLab環境の作り方をもとにpython3.8.5の可搬環境を作りました Windows embeddable package を使用

python環境ずくり

初期設定

  1. 名前を変更 : 短くしておく、setenv.batと名前を合わせる
  2. python38._pthの#import siteの先頭の#を消す
  3. get-pip.pyをhttps://bootstrap.pypa.io/get-pip.pyからダウンロードして、pythonフォルダに入れる
  4. pythonの実行ファイルのあるフォルダで、python.exe get-pip.pyを実行してpipを入れる
  5. python38._pth の名前を変えて無効化する(パスの関係で読み込めない) 例)python38._pth → python38._pth_muko

ライブラリ

python.exe -m pip install jupyterlab
python.exe -m pip install jupyterlab-language-pack-ja-JP
python.exe -m pip install jupytext
python.exe -m pip install jupyterlab-git
python.exe -m pip install ipywidgets
python.exe -m pip install qgrid
python.exe -m pip install jupyter-contrib-nbextensions
cd lib\site-packages\qgrid
open grid.py
524 @widgets.register() → @widgets.register

cd ../jupyter_contrib_nbextensions
code .
 template_path → template_paths フォルダレベルで置換
cd ../latex_envs
code .
 template_path → template_paths フォルダレベルで置換
jupyter nbextension enable --py --sys-prefix widgetsnbextension
jupyter nbextension enable --py --sys-prefix qgrid
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
jupyter nbextension enable toc2/main
python.exe -m pip uninstall jedi

nodejs

https://nodejs.org/ja/download/からバイナリを落として解凍し、setenv.batに合わせて配置

jupyterにカーネルを追加

npm install -g ijavascript
ijsinstall
jupyter kernelspec list

dotnet

  1. dotnet.7zを解凍して、pythonの中に配置
  2. setenv.batのpathにdotnet interactiveのexeのパスを通す %DP0%\.dotnet\tools;
  3. dotnet interactiveのコマンドでkernelを追加
dotnet interactive jupyter install
jupyter kernelspec list

※userprofileにできる場合があるので、その場合はuserorofileから移動すればOK

dotnetの作成

オフラインで、以下を実行するとuserprofileに.dotnetができるので、これを利用する。

dotnet tool install --global Microsoft.dotnet-interactive

JupyterLab extention

必要に応じて

  1. outside, do a jupyter lab install of all extensions of interest
  2. copy $PREFIX/share/jupyter/lab/static from the outside machine onto a shared/thumb drive
  3. inside, overwrite/create that same folder
jupyter labextension install @jupyterlab/toc
jupyter labextension install @jupyterlab/git
jupyter serverextension enable --py jupyterlab_git
jupyter labextension install @jupyter-widgets/jupyterlab-manager

Tkinter

参考

  1. 必要ファイルをPython embeddable の中にコピーする すでにインストールされている環境から以下をコピー。全部直下に入れる 1.tcl (フォルダ) 2.Lib/tkinter (フォルダ) 3.DLLs/tcl86t.dll (ファイル) 4.DLLs/tk86t.dll (ファイル) 5.DLLs/_tkinter.pyd (ファイル)

ライブラリ 必要に応じて

python.exe -m pip install numpy
python.exe -m pip install pandas
python.exe -m pip install pysimplegui
python.exe -m pip install pyperclip
python.exe -m pip install openpyxl
python.exe -m pip install xlwings
python.exe -m pip install pendulum
python.exe -m pip install nicegui
python.exe -m pip install justpy
python.exe -m pip install zeep
python.exe -m pip install xmltodict
python.exe -m pip install beautiflsoup4
python.exe -m pip install matplotlib
python.exe -m pip install japanize-matplotlib
python.exe -m pip install seaborn
python.exe -m pip install PyPDF2
python.exe -m pip install docx2txt
python.exe -m pip install python-docx
python.exe -m pip install python-pptx
python.exe -m pip install selenium
python.exe -m pip install img2pdf
python.exe -m pip install pdf2image
python.exe -m pip install pptx2md
python.exe -m pip install mouse
python.exe -m pip install PyMuPDF
python.exe -m pip install cufflinks

py385_env_kan's People

Contributors

nyanko111777 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.