For a course I am taking, I need to install the package(?) site into an Anaconda virtual environment. I was able to install the other requirements for the course using the command
pip install 'somename==version'
However, when I ran
pip install 'site==0.0.1'
I got the error message
Could not find a version that satisfies the requirement site (from versions: )
No matching distribution found for site
The only information about site that I can find is (https://libraries.io/pypi/site), but it does not really give much information.
I am using Anaconda 4.4.0 (x86_64) and Python 3.5.3.
Any help would be appreciated. Thanks!
site is internal to the Python interpreter, and is used to initialize machine-specific details of your Python installation.
What's telling you that you need to install this module? Ignore it. It's wrong.
Related
I am trying to set up a ML environment on my new Mac device which has a M1 chip. I followed this guide to get TensorFlow installed. However I do not know how to set up the environment on Pycharm. When I try to install Tensorflow as a package it outputs the following:
ERROR: Could not find a version that satisfies the requirement tensorflow-macos (from versions: none)
ERROR: No matching distribution found for tensorflow-macos
I have tried using different Python versions but it the same output keeps popping.
Could you help me with setting up the environment on Pycharm? More specifically what environment and interpreter should I select?
Thank you.
For me, I always follow this repository (Thanks to Daniel Bourke). Follow this steps which are provided in the repository and I hope this will get the job done. Enjoy <3
https://github.com/mrdbourke/m1-machine-learning-test
Try:
brew install hdf5
export HDF5_DIR=/opt/homebrew/opt/hdf5
pip install --no-binary=h5py h5py
pip install tensorflow-macos
This worked for me.
I use Anaconda on my Macbook Pro M1 and set up a separate environment for each problem. Works fine.
I'm fairly new to interacting with Mac OS through command line but i'm trying to make more of an effort to understand the interaction with it especially when it comes to installing programmes for programming languages. I'm trying to install jupyterlab so i ran
>>> pip install jupyterlab
and something runs so i'm assuming it has been installed somewhere.
However when then run
>>> jupyter lab or >>>jupyterlab
I get for both (command not found)
-bash: jupyterlab: command not found
Now online i've seen regarding the installation it says
"f installing using pip install --user, you must add the user-level bin directory to your PATH environment variable in order to launch jupyter lab."
Now this initially didn't mean too much to me but i've been looking into \bin files when looking at which version of python and i know
>>> which python
gives me the location of the binary for python. Naturally i tried
>>> which jupyterlab
>>> which jupyter lab
but both give me nothing.
I also get this message when i type pip install jupyterlab
Defaulting to user installation because normal site-packages is not
writeable
Requirement already satisfied: jupyterlab in
./Library/Python/2.7/lib/python/site-packages (0.33.12)
Does anyone have any ideas? Firstly do i need to add the user level bin directory to my path environment variable? If so how do i find it and how do i do that? I would really appreciate any advice broken into steps for a complete beginner. I really want to understand this so i can try to prevent issues like this in the future. I should highlight i don't have conda installed and i would like to solve this problem with pip. Thanks!
You should probably try to uninstall jupyterlab because it is installed using Python 2.7
pip uninstall jupyterlab
Then check that jupyter is non-existing by using:
which jupyterlab
And finally reinstall it using pip3 install instead of pip.
For pip to use python3.
pip3 install jupyterlab
Let me know if it worked ;)
I am using Python 2.7.11 and am trying to pip install modules however a few of them are failing. The message I get is "Failure to build wheel for 'X'" and "Error: INCLUDE Environment Variable is empty".
I tried to install Scrapy, LXML and Twisted and those failed. Some other random modules I tried installed fine.
I have installed pyOpenSSL, added python27 and python27/scripts to environment.
Thanks,
I tried both the solutions offered, none worked.
I installed Microsoft Visual C++ Compiler for Python 2.7, download it here. Then run:
pip install scrapy
That worked for me
A quick solution is to install the pre-compiled version of lxml. You can find it here. If you use the .exe you can point it directly to your python root folder.
After that:
close and re-open cmd
pip install your_package (make sure cmd is in the correct directory)
enjoy having no frustrating lxml errors!
Hope this helped.
Use a pre built library from this link if you are on windows:
https://www.lfd.uci.edu/~gohlke/pythonlibs/
Choose the relevant library given python version and desktop config. For example
I want to install apell in python 3.6 and winamd64 then download this:
aspell_python-1.15-cp36-cp36m-win_amd64.whl
Now go to your console and type
pip install path-to-.whl
and that's it.
I wanted to use OpenAL in Python, therefore I tried to install PyAL through the Pycharm project settings.
I got the error message:
No matching distribution found for PyAL
s the requirement PyAL (from version: )
Is this a known issue or am I doing something wrong?
Reference:
Pycharm Community Edition 2016.1.4
pip version 8.1.2
Python 3.5
There is no source or binary distribution for PyAL
Maybe you should download it from bitbucket
The homepage sais:
PyAL is easy to install and integrate within your own projects. Just follow Python's standard procedure of installing packages or look for a prebuilt package for your operating system or distribution.
Unfortunately this is not true. The only way to install PyAL is to download the source and run the setup.py
python setup.py install
I'm trying to install a charting tool (matplotlib-v1.4.2) for python 3.4 in Windows 7, so far all my trails doesn't seem to do the job.
Attempts:
I've downloaded pip from GitHub
python -m pip install matplotlib on Command Prompt[DOS] - No Use
There's a similar question posted here, tried these suggestions too but I get the following error
'$' is not reconginized as an internal or external command.
I'm sure I'm missing something, your step by step guidance on this regard would be much appreciated.
The $ refers to the beginning of a shell prompt, you shouldn't actually include it in your command :)
So rather than (from the example question you posted)
$ pip install requests
you actually type
pip install requests
In any case, you can download matplotlib .exe files from here for use in Windows. Make sure you get the correct bitness (32bit vs 64bit) and the correct Python version.
$ in the example signifies the linux prompt, which in windows is usually >
You can install the library by either using pip install, or using this link http://matplotlib.org/downloads.html
Additionally, most python packages for windows can be easily installed by using the installers from this site http://www.lfd.uci.edu/~gohlke/pythonlibs/