I have recently had to re-download and install Python by using the Anaconda package. This was done because i was having issues installing a few packages and found sources saying it would be easier to simply do it using Anaconda.
I now have the issue that I am unable to upgrade or find new packages (which i used to be able to do, i think it gave the list of all Pypi packages) and am not sure which URL i need to enter in order for PyCharm to find all the packages that it used to. This is what i currently have in the Repositories, As you can see i have already added a few PyPi links, of which none have been successful:
Does anyone know what link needs to be entered here to be able to browse through all PyPi Packages or upgrade currently installed packages?
Under Project Interpreter, there is an Anaconda button. This is a toggle. Turning it off, allows you to use repositories like https://pypi.python.org/simple.
In my configuration i have :
https://pypi.python.org/simple
I've had the same problem after installing Anaconda because of a tkinter problem
Related
I read all the proposed related questions but didn't find an answer to my case.
As for the title, I need to run a Python script (e.i. not an executable created with pyInstall) on a Windows VM that is not connected to the Internet. I can only download packages via browser.
Install Python is not a problem, but pip doesn't work, so I have the libraries issue.
Do you have any suggestions?
If you go to PyPi, where pip searches for packages, and find a package you are interested in, you can click on "Download Files" on the left panel. Using numpy as an example: https://pypi.org/project/numpy/#files
You can manually download the files that you want for each package and install them directly with pip. Keep in mind that the first couple of rounds will likely involve error messages telling you that there are missing dependencies. You will have to go back to PyPi and get those dependencies as well, until everything installs correctly.
You may want to check the following question for information regarding manual dependency management: How to extract dependencies from a PyPi package.
i am trying to connect my pycharm to my Bloomberg terminal. At my old company the infrastrcutre was already setup but not at this smaller company. I am using the link provided by bloomberg (https://www.bloomberg.com/professional/support/api-library/) but because of the security setup on my work pc I cannot pip install this (>> python -m pip install --index-url=https://bcms.bloomberg.com/pip/simple blpapi). Does anyone know how to
connect to bloomberg using baby steps
manually download these packages instead of pip install
where to save these packages to import them into the code
Thanks
Are you allowed to use virtualenv?
If you are you can just do:
virtualenv env
source env/bin/activate
pip install --index-url=https://bcms.bloomberg.com/pip/simple blpapi
That will then install it only to your local virtual environment.
If you're not, you also just open https://bcms.bloomberg.com/pip/simple/blpapi/ and download the libraries yourself, uncompress them, and put the files on the PYTHONPATH of your application.
I was interested in the question so thought I'd share what I found poking around.
Edit: Grab the wheel file from the site https://bcms.bloomberg.com/pip/simple/blpapi/ and try these ideas with help from this question: Install python wheel file without using pip
(Edit: the link was down when I looked, now it is up so grab the right one for your platform.)
Pycharm has a lot of tools to install things in a virtual env, if they block that at work, but let you install pycharm and python then things are a little messed up. Just sayin...
If you get into pycharm settings and go to project interpreter and then click add you can search bloomberg and there are 3 projects. You might see if those have any support. They do have email addresses you can contact the people. Those might be old and no good anymore or they might be better, who knows.
Hopefully these ideas give you a new lead somewhere.
I have computer that is not connected to the internet.
I download Anaconda installation wizard , but it is not contains all the packages that Anaconda contains in their website , and this uncomfortable .
How I can download all the packages that display in Anaconda for offline installation (the size of the installation is not a problem).
According to the Anaconda page here: Obtain a copy of the system appropriate installer, copy to the air-gapped machine, then follow the detailed instructions for you operating system (see links under "Detailed installation information".
Check the environment tab and see if the package you want is part of the environment, but not installed - many are already there. If it is part of the environment, then use the interactive installer to get it installed.
You can also try (from the command line/console) conda install <package-file-name>.tar.bz2 if you have a particular downloaded package that you want to install. Obviously in this case it needs to be a tar.bz file, but you should be able to modify that for other compression types.
Other environments, such as R are also available in the downloaded, but not installed category.
I think (not sure on this) that things such as Rstudio need to be downloaded separately to install.
Overall I'm trying to use a module in Django that helps with translating pages, but I don't have installed and can't do it through pip install package.
I've tried the fllowing:
pip install gettext
That returns that could not find a version that requires the...
I also downloaded the tar.gz file from the official website, yet when I try to install it localy the error:
python setup.py egg_info failed with error code 1 windows
Comes up. Been reading, trying to fix the second error or possible solutions, installed ez_update, updatade all packages, made a rollback and I don't know what to do anymore, any help?
The package gettext is available as python-gettext in Python pypi
Please use
pip install python-gettext
I was struggling with the same issue and what worked for me eventually is the following:
download gettext-runtime-0.17.zip and gettext-tools-0.17.zip (or the latest version) from here:
http://ftp.gnome.org/pub/gnome/binaries/win32/dependencies/
Place both directories in your project directory (say myProject)
Now, in each of these folders there is a bin folder. Go into it and copy the address. Each would look sth like:
C:\myProject\gettext-runtime-0.17\bin
C:\myProject\gettext-tools-0.17\bin
Go into: control panel > System > Advanced System settings > Environment variables. In system variables, choose Path and click
'edit'.
Paste both addresses at the end, like this:
;C:\myProject\gettext-runtime-0.17\bin;C:\myProject\gettext-tools-0.17\bin
(don't forget the semicolon after the last existing item)
Activate your virtualenv and run the makemessages command. It should work.
I know this question has been asked a few times before, but none of the answers I've read have managed to solve my problem.
When I try to run any of the following, I get an error saying "pip.exe has stopped working:
easy_install
pip
pip3
It was working for me previously (the last time I used it was probably a month ago), but not anymore. I'm using Python 3.4.4, I checked the PATH and it's configured correctly. Does anyone know what else might be causing the issue?
I had the same problem before and the solution is quite simple.
First try updating pip via command:
pip install --upgrade pip
If that doesn't work try uninstalling current version of python and reinstalling the newest version.
Note1: Do not just delete install files and files in your C drive ,uninstall everything packages, everything that might cause problems, especially delete old python packages and extensions they might not work with the newest python version and that might be the problem. You can see in python website which packages and extensions are supported.
Note2: Do not and I repeat DO NOT install .msi or .exe extensions they don't work anymore always use .whl (wheel) files. If you have one .msi or .exe uninstall them form your system completely; that also means that you have to uninstall them from command prompt.
Note3: Always check if the .whl is compatible with your Python version.
Note4: Also don't forget to save your projects before doing anything.
Hope that works :D
Happy Coding.