I tried putting virtualenv in Cygwin environment

State before setup

$ apt-cyg list python
python

$ python --version
Python 2.7.10

Installation of setuptools

$ apt-cyg install python-setuptools

Install virtualenv

$ easy_install-2.7 virtualenv
Searching for virtualenv
Reading https://pypi.python.org/simple/virtualenv/
Best match: virtualenv 13.1.2
Downloading https://pypi.python.org/packages/source/v/virtualenv/virtualenv-13.1.2.tar.gz#md5=b989598f068d64b32dead530eb25589a
Processing virtualenv-13.1.2.tar.gz
Writing /tmp/easy_install-dgIpjZ/virtualenv-13.1.2/setup.cfg
Running virtualenv-13.1.2/setup.py -q bdist_egg --dist-dir /tmp/easy_install-dgIpjZ/virtualenv-13.1.2/egg-dist-tmp-O1OxjH
warning: no previously-included files matching '*' found under directory 'docs/_templates'
warning: no previously-included files matching '*' found under directory 'docs/_build'
creating /usr/lib/python2.7/site-packages/virtualenv-13.1.2-py2.7.egg
Extracting virtualenv-13.1.2-py2.7.egg to /usr/lib/python2.7/site-packages
Adding virtualenv 13.1.2 to easy-install.pth file
Installing virtualenv script to /usr/bin
Installing virtualenv-2.7 script to /usr/bin

Installed /usr/lib/python2.7/site-packages/virtualenv-13.1.2-py2.7.egg
Processing dependencies for virtualenv
Finished processing dependencies for virtualenv

Creating a virtualenv environment

kunst@DESKTOP-A0MF4ER ~
$ mkdir myproject

kunst@DESKTOP-A0MF4ER ~
$ cd myproject/

kunst@DESKTOP-A0MF4ER ~/myproject
$ virtualenv .
New python executable in ./bin/python
Installing setuptools, pip, wheel...done.

kunst@DESKTOP-A0MF4ER ~/myproject
$ ls -l
4 in total
drwxrwxr-x+1 kunst None 0 January 15 21:08 bin
drwxrwxr-x+1 kunst None 0 January 15 21:08 include
drwxrwxr-x+1 kunst None 0 January 15 21:08 lib

Try pip install

kunst@DESKTOP-A0MF4ER ~/myproject
$ source bin/activate
(myproject)
kunst@DESKTOP-A0MF4ER ~/myproject
$ pip install cherrypy
Collecting cherrypy
  Downloading CherryPy-4.0.0.tar.gz (434kB)
    100% |████████████████████████████████| 438kB 390kB/s
Building wheels for collected packages: cherrypy
  Running setup.py bdist_wheel for cherrypy
  Stored in directory: /cygdrive/c/usr/home/.cache/pip/wheels/0b/a1/e1/8e7e0f3a71dce9f4ef4bf8667efcd772c594af46fe3c8bef66
Successfully built cherrypy
Installing collected packages: cherrypy
Successfully installed cherrypy-4.0.0
(myproject)

Get out of the virtualenv environment

kunst@DESKTOP-A0MF4ER ~/myproject
$ deactivate

kunst@DESKTOP-A0MF4ER ~/myproject
$ pip
-bash: pip:Command not found

Recommended Posts

I tried putting virtualenv in Cygwin environment
I tried running TensorFlow in AWS Lambda environment: Preparation
I tried the super-resolution algorithm "PULSE" in a Windows environment
I tried running GAN in Colaboratory
I tried Line notification in Python
When I tried to install PIL and matplotlib in a virtualenv environment, I was addicted to it.
pyenv + pyenv-Automatically load the virtualenv environment in the virtualenv environment
I tried to implement permutation in Python
I tried to implement PLSA in Python 2
I tried using Bayesian Optimization in Python
I tried to implement ADALINE in Python
I tried to implement PPO in Python
I started Node.js in a virtual environment
I tried putting various versions of Python + OpenCV + FFmpeg environment on Mac
I tried using NVDashboard (for those who use GPU in jupyter environment)
I tried to make PyTorch model API in Azure environment using TorchServe
Use the latest pip in a virtualenv environment
I tried scraping
I tried PyQ
I tried playing a typing game in Python
I tried to integrate with Keras in TFv1.1
I tried simulating the "birthday paradox" in Python
[Memo] I tried a pivot table in Python
I tried to implement TOPIC MODEL in Python
I tried Python's "*" character output in another language
I tried non-blocking I / O Eventlet behavior in Python
I tried papermill
Work in a virtual environment with Python virtualenv.
I tried adding a Python3 module in C
python in virtualenv
I tried to implement selection sort in python
I tried django-slack
I tried Django
I tried spleeter
Matplotlib etc. cannot be imported in VirtualEnv environment
I tried cgo
Install LightGBM in an OS X virtualenv environment
I tried to build an environment with WSL + Ubuntu + VS Code in a Windows environment
Draw a graph in Julia ... I tried a little analysis
I tried to graph the packages installed in Python
I tried using TradeWave (BitCoin system trading in Python)
I tried to implement a pseudo pachislot in Python
I tried to implement Dragon Quest poker in Python
I tried to implement GA (genetic algorithm) in Python
[Go + Gin] I tried to build a Docker environment
I tried to summarize how to use pandas in python
Work memo that I tried i18n with Flask app
I tried using parameterized
I tried using argparse
I tried using mimesis
I tried using anytree
I tried competitive programming
I tried running pymc
I tried ARP spoofing
I tried using Summpy
I tried Python> autopep8
I tried using coturn
I tried using Pipenv
I tried using matplotlib
I tried using "Anvil".
I tried using Hubot