How can I do pip install or same thing similar in terminal for Jython to install packages - jython

I have just installed jython and want to install some packages like bs4 and mechanize in python I simply did pip install and done. How I can do the same thing for jython I tried jip install package_name but got an error. Please give the answer as simple as possible to follow thanks in advance.

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!

Upgrade pip install on Win10 box

I'm trying to upgrade pip install to 22.3. I keep getting this error, "default to user install because normal sit-packages is not writeable."
I'm at the cmd prompt in win10 trying to install.
This came about because I'm trying to install pypdf2 and this won't install to python that's in my environment path. So I'm stumped.
Thanks for any help.
Unfortunately, I just uninstalled conda & the vanilla python. I reinstalled just plain python for now.
I think originally I did not use venv properly and maybe my conda & vanilla pythons could have been mixed? Not sure. But my vanilla 3.11 is working now and I do some more work.
Thanks for the help.
You can try to install it with the --user flag, which will install it to your user directory instead of the system directory. This is not recommended, but it will work.
pip install --user pypdf2

When Install spacy it show failed to install builed dependencies

When i try to install spacy it show error failed to install build dependencies.I have tried on all things but cannot solve it .
I donwload from following website but no help https://www.lfd.uci.edu/~gohlke/pythonlibs/
Please help me.i am in huge trouble
The best way to install spaCy is to just run pip install -U spacy, or, if you're using conda, run conda install -c conda-forge spacy. Alternatively, you can compile it from source by cloning the repo, but usually that isn't necessary. More info can be found here.

python Beautifulsoup4 package installing

I've trying to install beautifulsoup4 package for my mac.
I was following the video (https://www.youtube.com/watch?v=gM-L1rvTpwU).
I got up to where it's 1:40 in the video to upgrade the version of beautifulsoup.
But my terminal throws the error and this is how it looks:
could you guys help me how to fix this problem?
Thank you in advance!
try
sudo pip install BeautifulSoup4
as unix based system needs superuser permission to write unless you are installing it in a virtualenv

PIP install pandas not working

I am trying to install pandas with .whl file in a work computer but I get " cannot fetch URL" error. I have up to date version of PIP installed.How can I get this to work.I'm using Python 3.5.Any help will be appreciated.
I just used the following which was quite simple. First open a console then cd to where you've downloaded your file like some-package.whl and use
pip install some-package.whl
python -m pip install some-package.whl also works if pip is not found in PATH
Note: if pip.exe is not recognized, you may find it in the "Scripts" directory from where python has been installed. If pip is not installed, this page can help:
How do I install pip on Windows?
Note: for clarification
If you copy the *.whl file to your local drive (ex. C:\some-dir\some-file.whl) use the following command line parameters --
pip install C:/some-dir/some-file.whl
I guess since you are on a work computer
try this
sudo pip --proxy=http://username:password#proxyURL:portNumber install yolk
for example:
sudo pip --proxy=http://202.194.64.89:8000 install elasticsearch
202.194.64.89:8000 is my PROXY,