Showing posts with label Python. Show all posts
Showing posts with label Python. Show all posts

Monday, April 10, 2023

Python - Creating virtual environments

Install pip if it doesn't exist


$curl -O https://bootstrap.pypa.io/get-pip.py

$python3 get-pip.py --user

$python3 -m pip list

$python3 -m pip install tensorflow --no-cache-dir  #for space issue
 

Error during execution of: python3.8 -m venv myenv

Error: Command '['/path/to/desired/env/bin/python3.8', '-Im', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1.

Solution: Create a virtual environment using a especific python version

$virtualenv --python=$(which python3.7) envtf4p37


 

Thursday, March 23, 2023

Jetson Nano and Tensorflow

 

 

https://developer.download.nvidia.com/compute/redist/jp/v44/tensorflow/

tensorflow 1.15.x to 2.3.x 

https://developer.download.nvidia.com/compute/redist/jp/v45/tensorflow/

tensorflow 1.15.x to 2.5.0 

https://developer.download.nvidia.com/compute/redist/jp/v46/tensorflow/

tensorflow 1.15.x to 2.6.2(requires of h5py==3.1.0 and it requires pkconfig)

https://developer.download.nvidia.com/compute/redist/jp/v461/tensorflow/ 
tensorflow 2.7.x
 

Compatibility

tensorflow 2.5.0 requires numpy~=1.19.2

Under Python 3.6.9 (protobuf requires Python '>=3.7' but the running Python is 3.6.9)
 
 
Under Python 3.6.9 (protobuf requires Python '>=3.7' but the running Python is 3.6.9)

 
 
 
Change OS in Jetson
Download image and tool for write img 
https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write
 
dd if=/path/to/your/isofile of=/your/usb/disk bs=8M status=progress
  
 
 
 

Firefox open multiple private window

    /opt/firefox/firefox-bin --profile $(mktemp -d) --private-window www.google.com www.bing.com