pythonのvurtualenv更新のススメ!!!!!!!!
構成
pyenv + anaconda + python3.6
で構築している。
今までenv切り替えのsource activate
がpyenvとcondaで衝突してシェルごと殺される問題があった。
condaの4.4から
conda activate
が実装されシェルのrcにエイリアスとか書く必要がなくなった。
早速私はcondaをアプデした。
ついでにanacondaのバージョンも古いので一新することにした。
自分はenvに突っ込むライブラリをを用途ごとに細かく分けず、大抵の開発物に対応できるように(ウェブ、api、機械学習、画像処理、言語処理、ゲーム、etc...)たくさんのライブラリを一つのenvに突っ込んで大抵の開発をそのenvで行なっている。
これが悪手かどうかは人によって別れるが、私はアリだと思っている。
そのため自己流のrequirements.txtを保存しているので公開する。
大抵の開発物はこれでなんとかなるので是非pip installして見て欲しい。
appnope==0.1.0 asn1crypto==0.24.0 attrs==17.3.0 Automat==0.6.0 beautifulsoup4==4.6.0 bleach==1.5.0 boto==2.48.0 boto3==1.5.8 botocore==1.8.22 bz2file==0.98 cardgame==1.0 cffi==1.11.2 chardet==3.0.4 click==6.7 constantly==15.1.0 cryptography==2.1.4 cssselect==1.0.1 cycler==0.10.0 Cython==0.28.1 decorator==4.1.2 dj-database-url==0.5.0 Django==2.0.6 docutils==0.14 dominate==2.3.1 entrypoints==0.2.3 enum34==1.1.6 feedgenerator==1.9 Flask==0.12.2 Flask-Bootstrap==3.3.7.1 future==0.16.0 gensim==3.2.0 google-api-python-client==1.6.4 gunicorn==19.7.1 h5py==2.7.1 html5lib==0.9999999 httplib2==0.10.3 hyperlink==17.3.1 idna==2.6 incremental==17.5.0 ipykernel==4.7.0 ipython==6.2.1 ipython-genutils==0.2.0 ipywidgets==7.1.0 itsdangerous==0.24 Janome==0.3.6 jedi==0.11.1 Jinja2==2.10 jmespath==0.9.3 jsonschema==2.6.0 jupyter==1.0.0 jupyter-client==5.2.0 jupyter-console==5.2.0 jupyter-core==4.4.0 Keras==2.1.2 line-bot-sdk==1.5.0 lxml==4.1.1 Markdown==2.6.9 MarkupSafe==1.0 matplotlib==2.1.1 mistune==0.8.3 nbconvert==5.3.1 nbformat==4.4.0 networkx==2.0 notebook==5.2.2 numpy==1.14.5 oauth2client==4.1.2 opencv-python==3.4.0.12 pandas==0.21.1 pandocfilters==1.4.2 parsel==1.2.0 parso==0.1.1 pexpect==4.3.1 pickleshare==0.7.4 Pillow==5.0.0 pkginfo==1.4.2 pluggy==0.6.0 prompt-toolkit==1.0.15 protobuf==3.5.1 psycopg2==2.7.4 psycopg2-binary==2.7.4 ptyprocess==0.5.2 py==1.5.2 pyasn1==0.4.2 pyasn1-modules==0.2.1 pycparser==2.18 PyDecimal==1.0 PyDispatcher==2.0.5 Pygments==2.2.0 pymongo==3.6.0 PyMsgBox==1.0.6 PyMySQL==0.8.0 pyobjc==4.1 pyobjc-core==4.1 pyOpenSSL==17.5.0 pyparsing==2.2.0 PyScreeze==0.1.14 pytest==3.3.1 python-dateutil==2.6.1 python-dotenv==0.8.2 PyTweening==1.0.3 pytz==2017.3 PyWavelets==0.5.2 PyYAML==3.12 pyzmq==16.0.3 qtconsole==4.3.1 queuelib==1.4.2 requests==2.18.4 requests-toolbelt==0.8.0 robobrowser==0.5.3 rsa==3.4.2 s3transfer==0.1.12 scikit-image==0.13.1 scikit-learn==0.19.1 scipy==1.1.0 Scrapy==1.4.0 selenium==3.8.0 service-identity==17.0.0 simplegeneric==0.8.1 six==1.11.0 sklearn==0.0 smart-open==1.5.6 tensorflow==1.4.0 tensorflow-tensorboard==0.4.0rc3 terminado==0.8.1 testpath==0.3.1 tornado==4.5.2 tqdm==4.20.0 traitlets==4.3.2 twine==1.11.0 uritemplate==3.0.0 urllib3==1.22 visitor==0.1.3 w3lib==1.18.0 wcwidth==0.1.7 webencodings==0.5 Werkzeug==0.13 whitenoise==3.3.1 widgetsnbextension==3.1.0 zope.interface==4.4.3
$ pip install -r requirements.txt