How to install dependencies to Odoo's built-in Python? - odoo

I installed Odoo and it came with built-in Python. I want to install an auto_update plugin, which needs paramiko installed with pip to Python.
This means my problem is to install, with some pip, an add-on paramiko to Python installation of Odoo instead of default Python.
This topic - https://www.odoo.com/es_ES/forum/ayuda-1/how-to-install-an-external-python-dependency-in-windows-platform-of-odoo-170983 - gives link to https://www.cybrosys.com/blog/how-to-install-odoo-in-windows#python-dependency-odoo-windows; but first, I don't want to change my python default PATH into another one, and second, trying in virtual machine, that did not work - easy_install is not recognized as command.
I tried to run pip installation in PowerShell, which is in Odoo folder of python; I went to C:\Program Files\Odoo 16..\python\Scripts with PowerShell and ran "./pip" or "./pip3" - they gave me an error "Fatal error in launcher: Unable to create process using '"c:\odoobuild\winpy64\python-3.7.7.amd64\python.exe" "C:\Program Files\Odoo 16.0.20230110\python\Scripts\pip3.exe" ': El sistema no puede encontrar el archivo especificado.", which means it tried to use python from Odoo folder they used to build it, but my python is in Program Files with Odoo. How to run this specific pip to install addons to Odoo?
Edit:
Dealing with multiple Python versions and PIP? - this is Python question about the same topic; it gives examples about using different versions of python. When I tried something in it - running the same instance of Python with -m pip, which I wanted to upgrade, python of Odoo updates the deps of it's built-in postgresql python instead.

Related

Tensorflow-Text in Miniconda

I am trying to install tensorflow-text through miniconda in Spyder. I have managed to install other modules in Spyder such as tensorflow itself, pandas, scikit-learn, etc. However, using the same command as all the other installations (with the specific package name replaced by tensorflow-text)
conda install spyder-kernels tensorflow-text -y
I continue to get the same error whenever I try to install tensorflow-text:
PackagesNotFoundError: The following packages are not available from current channels:
- tensorflow-text
followed by a suggestion to search for the package on anaconda.org. As such, I searched for the tensorflow-text package on the anaconda site and found one, albeit for linux, by rocketce. Attempting to run the commands listed under the tensorflow-text installation instructions on that webpage also yielded the same error.
At first, I tried to install tensorflow-text through pip and was able to successfully run the command
pip install -U tensorflow-text==2.10.0
which seemed to install tensorflow-text. But I could not figure out how to access it or if it was correctly installed. Specifically, I am looking to use tensorflow-text in the Spyder IDE. I was able to get tensorflow working in the IDE, but not the specific tensorflow-text.
I am using a Windows 10 system; I could not find anything on the anaconda site for Windows 10. I am rather inexperienced (if you could not already tell from the nature and description of the problem), so patience and clear explanations are appreciated. Thanks in advance!

RASA : ModuleNotFoundError: No module named 'wikipedia'

I'm learning to use rasa language. To diversify the answers of the goal I decided to use the Wikipedia api. To create my working environment I used anaconda with the following commands:
conda create --name rasaWiki python == 3.7.6
conda activate rasaWiki
pip install rasa
pip install wikipedia
In the action.py file, when I try to import 'wikipedia', and launch the server with the command: rasa run actions I get the error:
ModuleNotFoundError: No module named wikipedia
However, I can compile other python programs that use the wikipedia package with the python command python 'nameOfTheFile.py'.
I managed to solve the problem. I work under windows, I use anaconda prompt 3. When I was running the rasa run actions command, I was in the environment (base). The wikipedia package I had installed is in the rasaWiki environment. So I installed Wikipedia with the command pip install wikipedia in the (base) environment, which solved the problem.

Installing pandas without pip

Is it possible to install pandas without installing pip or Is there any other way to use pandas without installing pip.
Thanks in advance.
pip is a package management system used to install and manage software packages written in Python. Many packages can be found in the default source for packages and their dependencies
here is the another way:
Download and unzip the current pandapower distribution to your local hard drive.
Open a command prompt (e.g. Start–>cmd on Windows) and navigate to the folder that contains the setup.py file with the command cd
cd %path_to_pandapower%\pandapower-x.x.x\
Install pandapower by running
python setup.py install
You can get pandas installed using the Anaconda distribution, which includes the Anaconda prompt. After you open an anaconda prompt, you can run the following command:
conda install pandas
which will install the latest version of pandas, or:
conda install pandas=0.20.3
to get a specific version of the package. Another way to do it is to install it with Miniconda, which allows you to avoid downloading the Anaconda installer and hundreds of other packages. More information can be found here: https://pandas.pydata.org/pandas-docs/version/0.23.4/install.html

Pycharm. Trouble installing numpy-mlk for Windows

I'm new to Python and am trying to install numpy-mkl from Pycharm. I get the following error even though I upgraded 'pip' to version 8.1.1 from Pycharm.
Thanks!
http://i.stack.imgur.com/ipvJw.png
i don't believe numpy-mkl is in the repositories, so it can't be installed the way you're doing it.
if you're running windows, download the appropriate Numpy+MKL .whl file from Here. For me, on cpython 3.5 64-bit, the current file is numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl
then run:
pip install "numpy-1.11.1+mkl-cp35-cp35m-win_amd64.whl"
i'm not sure if the .whl file needs to be in the same folder as your python installation or pip.

How to install lxml on Windows 8 64-bit with Python 3.4

Related Question 1
Related Question 2
[Error Log]
C:\Users\Hima\Documents\Installers\python\packages>python -m pip install lxml-3.4.4-cp34-none-win_amd64.whl
lxml-3.4.4-cp34-none-win_amd64.whl is not a supported wheel on this platform.
[Environment]
Windows x86 (64-bit)
Installed Visual Studio C++ 2014
Python 3.4
I use pip (or pip3.4.exe; built-in to Python 3.4) to pip install lxml
[Issues]
1. The lxml file from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml shows as not supported.
2. In the following Package Index for lxml, there isn't a suitable lxml file for 64 bit and Python 3.4.
https://pypi.python.org/pypi/lxml/3.4.4
I have been struggling with this today. I found, elsewhere on stackoverflow.com, this two-part and quick solution, which resulted in python no longer complaining when I tried to use lxml:
Go to this repository and download a version which matches your Python installation (the version number, and 32- vs 64-bit. I use Python 3.5.1 64-bit, installed on Windows 10, so on that page, I chose lxml-3.6.0-cp35-cp35m-win_amd64.whl.
You say you use Python 3.4, so use a version that matches that (or maybe the one you already have).
There is some helpful information at the top of the page about which version of CPython the files are built against.
The output of python -v will also tell you which version of MSVC++ was used to build your version of the python executable.
This answer is useful for determining MSVC versions from the output of python -v (which contains a build number instead of a version number).
My download directory is d:\Downloads. Python must be in your PATH environment variable for the next step to work. Use a command like the following, changing "D:\Downloads" to the pathname to your download directory. Then, at a DOS prompt, type:
python -m pip install "D:\Downloads\lxml-3.6.0-cp35-cp35m-win_amd64.whl" lxml-3.6.0-cp35-cp35m-win_amd64.whl
My config:
Python 3.5
Windows 10
Downloaded lxml-3.6.0-cp35-cp35m-win_amd64.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml
Copy this file to: c:\Program Files\Python35\
first in cmd line:
c:\Program Files\Python35>py -m pip install --upgrade pip
Then in cmd line:
c:\Program Files\Python35>py -m pip install lxml-3.6.0-cp35-cp35m-win_amd64.whl
And it's done