Tensorflow 2.7.0 is causing issue with source activate command - tensorflow

i'm executing this commands in shell in packer.json file building a dlami. I"m getting this error after running packer build command.
==> amazon-ebs: /tmp/script_4366.sh: line 2: source: activate: file not found
My code is:
{
"inline": [
"source activate tensorflow2_p38",
"conda install pip",
"pip install --upgrade pip",
"pip install transformers",
"pip install torch",
"pip install tensorflow-gpu==2.7.0"
],
"type": "shell"
},
looks like source activate command is causing issues. any suggestions please ?

Related

package installation into singularity

I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says
Singularity> apt-get -y update
bash: apt-get: command not found
I already have python on my local computer. How can I resolve this?

How to install p4python on Cygwin64

Trying to install p4python on Cygwin fails with
$pip install p4python
[... logs ...]
File "/tmp/pip-install-6mn3hyn3/p4python_9e95a104710b449a90a68bc227a2ee69/setup.py", line 292, in run
raise Exception("Parameter --ssl is needed")
Exception: Parameter --ssl is needed
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> p4python
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I am using Cygwin64 on Windows 10, specifically:
$ pip --version
pip 22.3 from /usr/local/lib/python3.9/site-packages/pip (python 3.9)
$ python --version
Python 3.9.10
$ which python
/usr/bin/python
I tried using the wheel files from PyPi but there is no compatible platform for Cygwin.
How can I work around this ssl dependency to install the module?
I have included libssl while installing Cygwin.
Try
python -m pip install p4python

Unable to install tensorflow graphics

I am trying to use Levenberg optimizer using the tfg.math.optimizer.levenberg_marquardt.minimize. I am following the installation instructions from https://www.tensorflow.org/graphics/install
On using: pip install --upgrade tensorflow-graphics, I get the following error:
ERROR: Failed building wheel for OpenEXR
Running setup.py clean for OpenEXR
Failed to build OpenEXR
Installing collected packages: OpenEXR, tensorflow-graphics
Running setup.py install for OpenEXR ... error
ERROR: Command errored out with exit status 1:
Could you please help me with this?
Thanks
I'm on Linux and I needed to install libopenexr-dev with apt:
sudo apt install libopenexr-dev
After this pip install tensorflow-graphics run without problems.

Error intsalling tensorflow via pip install

WARNING: Failed to write executable - trying to use .deleteme logic
ERROR: Could not install packages due to an EnvironmentError: [WinError 2] The system cannot find the file specified: 'c:\python38\Scripts\chardetect.exe' -> 'c:\python38\Scripts\chardetect.exe.deleteme'
I was trying to install Tensorflow via command pip install tensorflow. and after downloading everything at the end found this error..can anyone tell me why this happened?
According to https://www.codegrepper.com/ you can use these two:
In Windows
python -m pip install -U pip --user
In Linux
pip install -U pip --user

Google Colaboratory gives me an error when I want to install OpenSlide

When I ran the following commands in the Jupiter notebook, it gives me an error.
!apt-get install openslide-tools
!pip install openslide-python
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
It was working before but right now it gives me an error when I try to run it.
Seems you have to install the python libraries for openslide through apt-get. Try this
!apt-get install openslide-tools
!apt-get install python3-openslide