Showing posts with label pip (package manager). Show all posts
Showing posts with label pip (package manager). Show all posts

Saturday, November 26, 2016

macOS Sierra: Installing 3Blue1Brown Animation Engine for Explanatory Math Videos

Command:

$ git clone https://github.com/3b1b/manim.git


Result:

Cloning into 'manim'...
remote: Counting objects: 2652, done.
remote: Compressing objects: 100% (71/71), done.
remote: Total 2652 (delta 33), reused 0 (delta 0), pack-reused 2581
Receiving objects: 100% (2652/2652), 1.46 MiB | 736.00 KiB/s, done.
Resolving deltas: 100% (1976/1976), done.


Command:

$ cd manim
$ sudo pip install -r requirements.txt
Password:


Result:

The directory '/Users/USERNAME/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/USERNAME/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): colour==0.1.2 in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 1))
Requirement already satisfied (use --upgrade to upgrade): numpy==1.11.0 in /usr/local/lib/python2.7/site-packages (from -r requirements.txt (line 2))
Collecting Pillow==3.4.2 (from -r requirements.txt (line 3))
  Downloading Pillow-3.4.2-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (3.4MB)
    100% |████████████████████████████████| 3.5MB 408kB/s
Collecting progressbar==2.3 (from -r requirements.txt (line 4))
Collecting scipy==0.17.1 (from -r requirements.txt (line 5))
  Downloading scipy-0.17.1-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (21.1MB)
    100% |████████████████████████████████| 21.1MB 69kB/s
Collecting tqdm==4.7.1 (from -r requirements.txt (line 6))
  Downloading tqdm-4.7.1-py2.py3-none-any.whl
Installing collected packages: Pillow, progressbar, scipy, tqdm
Successfully installed Pillow-3.4.2 progressbar-2.3 scipy-0.17.1 tqdm-4.7.1
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.


Command (After installing aggdraw):

$ python extract_scene.py -p example_scenes.py SquareToCircle


Result:

Animation 1: ShowCreationSquare: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 240.61it/s]
Animation 2: TransformSquareToCircle: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 20/20 [00:00<00:00, 233.58it/s]


Graphical result:

3Blue1Brown Animation engine running in Python


Thursday, October 27, 2016

macOS Sierra: Tor (anonymity network): Installing ARM (The anonymizing relay monitor): Incomplete

Command:

$ git clone https://git.torproject.org/nyx.git


Result:

Cloning into 'nyx'...
remote: Counting objects: 11674, done.
remote: Compressing objects: 100% (76/76), done.
remote: Total 11674 (delta 42), reused 0 (delta 0)
Receiving objects: 100% (11674/11674), 2.71 MiB | 446.00 KiB/s, done.
Resolving deltas: 100% (9078/9078), done.


Command:

$ cd nyx
$ python setup.py


Result (Error):

Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    import nyx
  File "/Users/USERNAME/nyx/nyx/__init__.py", line 41, in <module>
    import stem
ImportError: No module named stem


Command:

$ sudo pip install stem
Password:


Result:

The directory '/Users/USERNAME/Library/Caches/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/Users/USERNAME/Library/Caches/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Collecting stem
  Downloading stem-1.4.0.tar.bz2 (1.6MB)
    100% |████████████████████████████████| 1.6MB 718kB/s
Installing collected packages: stem
  Running setup.py install for stem ... done
Successfully installed stem-1.4.0


Command:

$ python setup.py


Result (Error):

Traceback (most recent call last):
  File "setup.py", line 10, in <module>
    import nyx
  File "/Users/USERNAME/nyx/nyx/__init__.py", line 521, in <module>
    import nyx.panel.config
  File "/Users/USERNAME/nyx/nyx/panel/config.py", line 17, in <module>
    import stem.manual
ImportError: No module named manual


Command:

$ python


Result:

Python 2.7.12 (default, Oct 19 2016, 01:11:34)
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.38)] on darwin
Type "help", "copyright", "credits" or "license" for more information.


Command:

>>> import sys
>>> sys.path


Result:

['', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python27.zip', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-darwin', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plat-mac/lib-scriptpackages', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-old', '/usr/local/Cellar/python/2.7.12_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/site-packages', '/usr/local/Cellar/matplotlib/1.5.1/libexec/lib/python2.7/site-packages', '/usr/local/Cellar/numpy/1.11.2/libexec/nose/lib/python2.7/site-packages', '/Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg', '/Library/Python/2.7/site-packages']


Command:

>>> quit()
$ ls -al /usr/local/lib/python2.7/site-packages/stem/


Result (Missing stem.manual):

total 1136
drwxr-xr-x  22 root  wheel     748 Oct 27 12:06 .
drwxr-xr-x  43 USERNAME  wheel    1462 Oct 27 12:06 ..
-rw-r--r--   1 root  wheel   25346 May 14  2015 __init__.py
-rw-r--r--   1 root  wheel   27294 Oct 27 12:06 __init__.pyc
-rw-r--r--   1 root  wheel   48656 May 14  2015 connection.py
-rw-r--r--   1 root  wheel   45507 Oct 27 12:06 connection.pyc
-rw-r--r--   1 root  wheel  128760 May 14  2015 control.py
-rw-r--r--   1 root  wheel  118390 Oct 27 12:06 control.pyc
drwxr-xr-x  24 root  wheel     816 Oct 27 12:06 descriptor
-rw-r--r--   1 root  wheel   34569 May 14  2015 exit_policy.py
-rw-r--r--   1 root  wheel   31176 Oct 27 12:06 exit_policy.pyc
drwxr-xr-x  13 root  wheel     442 Oct 27 12:06 interpreter
-rw-r--r--   1 root  wheel    3430 May 14  2015 prereq.py
-rw-r--r--   1 root  wheel    4029 Oct 27 12:06 prereq.pyc
-rw-r--r--   1 root  wheel    8996 May 14  2015 process.py
-rw-r--r--   1 root  wheel    7768 Oct 27 12:06 process.pyc
drwxr-xr-x  18 root  wheel     612 Oct 27 12:06 response
-rw-r--r--   1 root  wheel   21337 May 14  2015 socket.py
-rw-r--r--   1 root  wheel   19283 Oct 27 12:06 socket.pyc
drwxr-xr-x  29 root  wheel     986 Oct 27 12:06 util
-rw-r--r--   1 root  wheel   12810 May 14  2015 version.py
-rw-r--r--   1 root  wheel   14866 Oct 27 12:06 version.pyc

Monday, October 3, 2016

Python: ONIOFF - Onion URL Inspector: Installing and Running

Command:

$ git clone https://github.com/k4m4/onioff


Result:

Cloning into 'onioff'...
remote: Counting objects: 57, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 57 (delta 30), reused 52 (delta 25), pack-reused 0
Unpacking objects: 100% (57/57), done.


Command:

$ cd onioff
$ ls


Result:

CHANGES.rst README.rst onioff.py requirements.txt
LICENSE VERSION reports termcolor.py


Command:

$ cat requirements.txt


Result:

requests
pysocks


Command:

$ pip install -r requirements.txt


Result:

Collecting requests (from -r requirements.txt (line 1))
  Downloading requests-2.11.1-py2.py3-none-any.whl (514kB)
    100% |████████████████████████████████| 522kB 1.5MB/s
Collecting pysocks (from -r requirements.txt (line 2))
  Downloading PySocks-1.5.7.tar.gz
Collecting beautifulsoup4 (from -r requirements.txt (line 3))
  Downloading beautifulsoup4-4.5.1-py2-none-any.whl (83kB)
    100% |████████████████████████████████| 92kB 4.1MB/s
Building wheels for collected packages: pysocks
  Running setup.py bdist_wheel for pysocks ... done
  Stored in directory: /Users/USERNAME/Library/Caches/pip/wheels/cf/81/67/77884514e566867d5223e5530e27ce9b9433b78c766a400313
Successfully built pysocks
Installing collected packages: requests, pysocks, beautifulsoup4
Successfully installed beautifulsoup4-4.5.1 pysocks-1.5.7 requests-2.11.1


Command:

$ python onioff.py -h


Result:

 ██████╗ ███╗   ██╗██╗ ██████╗ ███████╗███████╗
██╔═══██╗████╗  ██║██║██╔═══██╗██╔════╝██╔════╝
██║   ██║██╔██╗ ██║██║██║   ██║█████╗  █████╗
██║   ██║██║╚██╗██║██║██║   ██║██╔══╝  ██╔══╝
╚██████╔╝██║ ╚████║██║╚██████╔╝██║     ██║
 ╚═════╝ ╚═╝  ╚═══╝╚═╝ ╚═════╝ ╚═╝     ╚═╝ v0.1

          Onion URL Inspector (ONIOFF)        
  Made With <3 by: Nikolaos Kamarinakis (k4m4)
                  Version: 0.1                
Usage: python onioff.py {onion} [options]

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  -f FILE, --file=FILE  onion filename
  -o OUTPUT_FILE, --output=OUTPUT_FILE
                        output filename

Examples:
  python onioff.py http://xmh57jrzrnw6insl.onion/
  python onioff.py -f ~/onions.txt -o ~/report.txt
  python onioff.py https://facebookcorewwwi.onion/ -o ~/report.txt


Command:

$ python onioff.py -f ~/onions.txt -o ~/report.txt


Result:

 ██████╗ ███╗   ██╗██╗ ██████╗ ███████╗███████╗
██╔═══██╗████╗  ██║██║██╔═══██╗██╔════╝██╔════╝
██║   ██║██╔██╗ ██║██║██║   ██║█████╗  █████╗
██║   ██║██║╚██╗██║██║██║   ██║██╔══╝  ██╔══╝
╚██████╔╝██║ ╚████║██║╚██████╔╝██║     ██║
 ╚═════╝ ╚═╝  ╚═══╝╚═╝ ╚═════╝ ╚═╝     ╚═╝ v0.1

          Onion URL Inspector (ONIOFF)        
  Made With <3 by: Nikolaos Kamarinakis (k4m4)
                  Version: 0.1                

[+] Commencing Onion Inspection
[-] Tor Offline --> Please Make Sure Tor Is Running
[-] System Exit




Monday, March 21, 2016

pip: Installing pip (Package Manager for Python) on OS X Using easy_install

Command:

$ sudo easy_install pip

Result:

Password:
Searching for pip
Reading https://pypi.python.org/simple/pip/
Best match: pip 8.1.1
Downloading https://pypi.python.org/packages/source/p/pip/pip-8.1.1.tar.gz#md5=6b86f11841e89c8241d689956ba99ed7
Processing pip-8.1.1.tar.gz
Writing /tmp/easy_install-1rbqCh/pip-8.1.1/setup.cfg
Running pip-8.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-1rbqCh/pip-8.1.1/egg-dist-tmp-OTECPf
warning: no previously-included files found matching '.coveragerc'
warning: no previously-included files found matching '.mailmap'
warning: no previously-included files found matching '.travis.yml'
warning: no previously-included files found matching '.landscape.yml'
warning: no previously-included files found matching 'pip/_vendor/Makefile'
warning: no previously-included files found matching 'tox.ini'
warning: no previously-included files found matching 'dev-requirements.txt'
warning: no previously-included files found matching 'appveyor.yml'
no previously-included directories found matching '.github'
no previously-included directories found matching '.travis'
no previously-included directories found matching 'docs/_build'
no previously-included directories found matching 'contrib'
no previously-included directories found matching 'tasks'
no previously-included directories found matching 'tests'
Adding pip 8.1.1 to easy-install.pth file
Installing pip script to /usr/local/bin
Installing pip2.7 script to /usr/local/bin
Installing pip2 script to /usr/local/bin

Installed /Library/Python/2.7/site-packages/pip-8.1.1-py2.7.egg
Processing dependencies for pip

Finished processing dependencies for pip