All-
I would like to use the gensim library, but unfortunately I can't install it via pip due to the company's firewall. Any advice? Thank you in advance for any help or suggestions you can provide.
Tedious and only solution then is to download all the dependencies one by one and install them along with gensim. So, go to pypi and download gensim first and install it, then it might raise errors saying some package is missing or trying to download it.Then, download that specific package and install it via pip by giving path to the downloaded whl or source file
Related
hi I have Anaconda installed at work. I tried to pip install sas7bdat, it does not work seems because I don't have internet access or any access to whatever could be downloaded....
Is there a way to pip install sas7bdat if I dont have internet access or external source. Is the file I need to install already inside my computer given I have Anaconda installed? Please kindly assist.
I dont have access due to security reason.
Anaconda should already include sas7bdat, it should be available in your base environment (see package list)
You can download sas7bdat wheel manually and then install it.
See: https://stackoverflow.com/a/27909082/5304366
You can also use a portable Python scientific distribution (e.g. WinPython) that may include sas7bdat.
You could probably also setup a local/private pypi server that would allow you to pip install any package. But I guess it is more work.
I am trying to use the customvision SDK in python.
As it is explained on the customvision website, I run pip install azure-cognitiveservices-vision-customvision.
But I get a missing file error. Does someone could give me an example of :
\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\azure\cognitiveservices\vision\customvision\prediction\models\pycache\_custom_vision_prediction_client_enums.cpython-38.pyc'
Thank you for trying to help but I fixed this problem yersteday.
In order to do that, I reinstalled python 3.8 and pip3, then I installed azure-cognitiveservices-vision-customvision==1.0.0 package.
However it didn't install the training package so I had to download it manually on Pypi.
I tried installing Pyaudio in Python but Python says it requires Portaudio binding for the installation.Help me fix this please.My platform is Windows.I am using Python 3.7.2.
I did:
1.I followed the instructions provided in the portaudio website and generated dll file using visual studio.
The portaudio directory where the compiled files are located is my Desktop.
2.Anyway I have installed pyaudio using a setup(exe) file which i found somewhere.
So whenever i type the command "pip install pyaudio", it says the requirements are already fulfilled.
But when i use the alternative command "easy_install pyaudio",it shows an error related to portaudio.
3.And whenever I run a python file which uses pyaudio it again says binding is required.
So, I need the solution to bind Portaudio files which are in my desktop with python.
I searched everywhere for the solution but since I am a beginner, all the tutorials provided in different websites were hard to understand for me.
So please help me with a simple and descriptive solution.
Thanks in advance.
ouch, it seems like you have chosen a painful way to get pyaudio installed.
I never compile on windows, if I can't find a pre-compiled binary I will look around for a different way to get to where I want to (different library…)
you can uninstall with pip uninstall pyaudio
anyways, here's one way to get it working.
download and install a "miniconda" (google if you don't know what it is)
do conda install pyaudio in your "conda"-prompt
I did not truly check the install, but I did the conda install… and it would have installed both portaudio and pyaudio so I suppose it will work.
I am very new to python, and am having difficulty getting any packages from online to install properly. I'm pretty sure I'm doing something fundamentally wrong, but since I am new to language I am unsure of what it is. I have read through several online sources but still can't get it to work. I feel really dumb asking this, but I would greatly appreciate it if someone could walk me through how to install it starting from the point of downloading the package online. Thanks!
If your primary use case is the scipy stack, for example as a Matlab replacement. I would highly recommend using the Anaconda distribution. It is brilliant for new comers, a large majority of what you are likely after comes pre installed.
Download it here:
https://www.continuum.io/downloads#_macosx
I would recommend picking the python 3 64bit installer. A direct link to the download is here:
https://3230d63b5fc54e62148e-c95ac804525aac4b6dba79b00b39d1d3.ssl.cf1.rackcdn.com/Anaconda3-2.3.0-MacOSX-x86_64.pkg
Your best bet is to use Homebrew as your general package manager and then use use it to install Pip to manage all of your python packages. Both of the links below will walk you through how to do these things.
See Homebrew link
See How to install pip on Mac for Pip
Go here and download get-pip.py
Then, from terminal run the command python get-pip.py
This should install pip for you. Pip is awesome, and you really want to have it. Now, all you have to do is run this command from terminal:
pip install matplotlib
Or to get Numpy:
pip install numpy
I am trying to read shapefiles to view suburbs in a city following this tutorial using windows 8, Anaconda and iPython.
I tried "conda install shapefile" and "pip install shapefile" in command prompt, both returning "Error: No packages found matching: shapefile".
Besides that I tried adding it manually following these links [1]How to import a module given the full path?
[2]Import python module NOT on path. However I am getting permission errors which suggests I am not importing them correctly anyway.
Any suggestions on how to proceed or best practices are appreciated.
try
pip install pyshp
in your cmd.
that is the name of you library as far as I can see, see https://pypi.python.org/pypi/pyshp
conda only works for these http://docs.continuum.io/anaconda/pkgs.html packages.
For the ones not in the list you need to use pip install. It can be confusing as the name of the library on pypi (this is where pip goes to download it) is often, but not always the same as the import name, so if conda and pip don't work, first try to google to make 100% sure that your library is not on pypi, because most respectable libraries are...