Skip to content

Instantly share code, notes, and snippets.

@isakib
Created November 17, 2016 11:14
Show Gist options
  • Select an option

  • Save isakib/3b455fd4959d8f9d1bd9f6795298fb14 to your computer and use it in GitHub Desktop.

Select an option

Save isakib/3b455fd4959d8f9d1bd9f6795298fb14 to your computer and use it in GitHub Desktop.

Revisions

  1. isakib created this gist Nov 17, 2016.
    227 changes: 227 additions & 0 deletions behavesetup_windows_10
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,227 @@
    Microsoft Windows [Version 10.0.10240]
    (c) 2015 Microsoft Corporation. All rights reserved.
    The system cannot find the path specified.

    C:\Users\BS-121>pip

    Usage:
    pip <command> [options]

    Commands:
    install Install packages.
    download Download packages.
    uninstall Uninstall packages.
    freeze Output installed packages in requirements format.
    list List installed packages.
    show Show information about installed packages.
    check Verify installed packages have compatible dependencies.
    search Search PyPI for packages.
    wheel Build wheels from your requirements.
    hash Compute hashes of package archives.
    completion A helper command used for command completion.
    help Show help for commands.

    General Options:
    -h, --help Show help.
    --isolated Run pip in an isolated mode, ignoring
    environment variables and user configuration.
    -v, --verbose Give more output. Option is additive, and can be
    used up to 3 times.
    -V, --version Show version and exit.
    -q, --quiet Give less output. Option is additive, and can be
    used up to 3 times (corresponding to WARNING,
    ERROR, and CRITICAL logging levels).
    --log <path> Path to a verbose appending log.
    --proxy <proxy> Specify a proxy in the form
    [user:passwd@]proxy.server:port.
    --retries <retries> Maximum number of retries each connection should
    attempt (default 5 times).
    --timeout <sec> Set the socket timeout (default 15 seconds).
    --exists-action <action> Default action when a path already exists:
    (s)witch, (i)gnore, (w)ipe, (b)ackup, (a)bort.
    --trusted-host <hostname> Mark this host as trusted, even though it does
    not have valid or any HTTPS.
    --cert <path> Path to alternate CA bundle.
    --client-cert <path> Path to SSL client certificate, a single file
    containing the private key and the certificate
    in PEM format.
    --cache-dir <dir> Store the cache data in <dir>.
    --no-cache-dir Disable the cache.
    --disable-pip-version-check
    Don't periodically check PyPI to determine
    whether a new version of pip is available for
    download. Implied with --no-index.

    C:\Users\BS-121>cd /

    C:\>cd test

    C:\test>pip install virtualenv .
    Directory '.' is not installable. File 'setup.py' not found.

    C:\test>pip install virtualenv
    Collecting virtualenv
    c:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    c:\python27\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Downloading virtualenv-15.1.0-py2.py3-none-any.whl (1.8MB)
    100% |################################| 1.8MB 153kB/s
    Installing collected packages: virtualenv
    Successfully installed virtualenv-15.1.0

    C:\test>virtualenv .
    New python executable in C:\test\Scripts\python.exe
    Installing setuptools, pip, wheel...done.

    C:\test>source
    'source' is not recognized as an internal or external command,
    operable program or batch file.

    C:\test>./bin/activate
    '.' is not recognized as an internal or external command,
    operable program or batch file.

    C:\test>/bin/activate
    The system cannot find the path specified.

    C:\test>cd bin
    The system cannot find the path specified.

    C:\test>dir
    Volume in drive C has no label.
    Volume Serial Number is C45C-E670

    Directory of C:\test

    11/17/2016 05:04 PM <DIR> .
    11/17/2016 05:04 PM <DIR> ..
    11/05/2016 11:10 PM <DIR> Include
    11/17/2016 05:04 PM <DIR> Lib
    11/17/2016 05:04 PM 60 pip-selfcheck.json
    11/17/2016 05:04 PM <DIR> Scripts
    11/17/2016 05:04 PM <DIR> tcl
    1 File(s) 60 bytes
    6 Dir(s) 31,022,014,464 bytes free

    C:\test>cd Lib

    C:\test\Lib>dir
    Volume in drive C has no label.
    Volume Serial Number is C45C-E670

    Directory of C:\test\Lib

    11/17/2016 05:04 PM <DIR> .
    11/17/2016 05:04 PM <DIR> ..
    07/04/2010 07:32 AM 7,256 abc.py
    11/17/2016 05:04 PM 5,971 abc.pyc
    06/04/2010 09:00 PM 36,364 codecs.py
    11/17/2016 05:04 PM 35,756 codecs.pyc
    06/04/2010 09:00 PM 7,001 copy_reg.py
    11/17/2016 05:04 PM 5,014 copy_reg.pyc
    11/17/2016 05:04 PM <DIR> distutils
    11/05/2016 11:19 PM <DIR> encodings
    12/06/2009 08:04 PM 3,132 fnmatch.py
    11/17/2016 05:04 PM 3,183 fnmatch.pyc
    02/18/2010 11:12 AM 3,120 genericpath.py
    11/17/2016 05:04 PM 3,173 genericpath.pyc
    06/04/2010 09:00 PM 4,099 linecache.py
    11/17/2016 05:04 PM 3,157 linecache.pyc
    05/09/2010 10:11 AM 90,839 locale.py
    11/17/2016 05:04 PM 49,068 locale.pyc
    11/17/2016 05:04 PM 0 no-global-site-packages.txt
    03/06/2010 11:04 PM 18,006 ntpath.py
    11/17/2016 05:04 PM 11,212 ntpath.pyc
    11/17/2016 05:04 PM 11 orig-prefix.txt
    02/06/2010 08:16 PM 27,059 os.py
    11/17/2016 05:04 PM 25,657 os.pyc
    03/06/2010 11:04 PM 13,436 posixpath.py
    11/17/2016 05:04 PM 10,856 posixpath.pyc
    05/04/2009 06:31 PM 13,332 re.py
    11/17/2016 05:04 PM 12,943 re.pyc
    11/17/2016 05:04 PM <DIR> site-packages
    11/17/2016 05:04 PM 27,543 site.py
    11/17/2016 05:04 PM 23,540 site.pyc
    04/04/2007 06:20 PM 397 sre.py
    10/17/2008 03:40 PM 16,951 sre_compile.py
    11/17/2016 05:04 PM 10,935 sre_compile.pyc
    10/28/2005 08:07 PM 7,398 sre_constants.py
    11/17/2016 05:04 PM 6,043 sre_constants.pyc
    10/17/2008 03:40 PM 27,588 sre_parse.py
    11/17/2016 05:04 PM 18,776 sre_parse.pyc
    04/02/2008 12:56 PM 1,812 stat.py
    11/17/2016 05:04 PM 2,613 stat.pyc
    12/06/2009 08:04 PM 2,124 types.py
    11/17/2016 05:04 PM 2,452 types.pyc
    07/04/2010 07:32 AM 5,991 UserDict.py
    11/17/2016 05:04 PM 8,415 UserDict.pyc
    05/09/2010 10:11 AM 14,444 warnings.py
    11/17/2016 05:04 PM 12,909 warnings.pyc
    06/04/2010 09:00 PM 14,586 _abcoll.py
    11/17/2016 05:04 PM 20,361 _abcoll.pyc
    04/10/2010 06:52 PM 6,517 _weakrefset.py
    11/17/2016 05:04 PM 9,770 _weakrefset.pyc
    45 File(s) 630,810 bytes
    5 Dir(s) 31,022,014,464 bytes free

    C:\test\Lib>cd ..

    C:\test>cd Scripts

    C:\test\Scripts>dir
    Volume in drive C has no label.
    Volume Serial Number is C45C-E670

    Directory of C:\test\Scripts

    11/17/2016 05:04 PM <DIR> .
    11/17/2016 05:04 PM <DIR> ..
    11/17/2016 05:04 PM 2,149 activate
    11/17/2016 05:04 PM 743 activate.bat
    11/17/2016 05:04 PM 8,325 activate.ps1
    11/17/2016 05:04 PM 1,137 activate_this.py
    11/17/2016 05:04 PM 508 deactivate.bat
    11/17/2016 05:04 PM 89,453 easy_install-2.7.exe
    11/17/2016 05:04 PM 89,453 easy_install.exe
    11/17/2016 05:04 PM 89,425 pip.exe
    11/17/2016 05:04 PM 89,425 pip2.7.exe
    11/17/2016 05:04 PM 89,425 pip2.exe
    11/17/2016 05:04 PM 26,624 python.exe
    11/17/2016 05:04 PM 27,136 pythonw.exe
    11/17/2016 05:04 PM 89,432 wheel.exe
    13 File(s) 603,235 bytes
    2 Dir(s) 31,022,071,808 bytes free

    C:\test\Scripts>activate

    (test) C:\test\Scripts>pip install behave
    Collecting behave
    c:\test\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:318: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
    SNIMissingWarning
    c:\test\lib\site-packages\pip\_vendor\requests\packages\urllib3\util\ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
    InsecurePlatformWarning
    Downloading behave-1.2.5-py2.py3-none-any.whl (109kB)
    100% |################################| 112kB 210kB/s
    Collecting six (from behave)
    Downloading six-1.10.0-py2.py3-none-any.whl
    Collecting parse>=1.6.3 (from behave)
    Downloading parse-1.6.6-py2-none-any.whl
    Collecting parse-type>=0.3.4 (from behave)
    Downloading parse_type-0.3.4.tar.gz (62kB)
    100% |################################| 71kB 258kB/s
    Collecting enum34 (from parse-type>=0.3.4->behave)
    Downloading enum34-1.1.6-py2-none-any.whl
    Building wheels for collected packages: parse-type
    Running setup.py bdist_wheel for parse-type ... done
    Stored in directory: C:\Users\BS-121\AppData\Local\pip\Cache\wheels\4e\5c\2b\69e1676d9fbf9328e8d7a12c3a329b1ddced9a020cdbf11e10
    Successfully built parse-type
    Installing collected packages: six, parse, enum34, parse-type, behave
    Successfully installed behave-1.2.5 enum34-1.1.6 parse-1.6.6 parse-type-0.3.4 six-1.10.0

    (test) C:\test\Scripts>deactivate.bat
    C:\test\Scripts>activate

    (test) C:\test\Scripts>cd ..

    (test) C:\test>