Unable to install "Turicreate" on my Windows 10 - python

I am new to Python and I am trying to build a recommendation engine by following a tutorial. The tutorials asks me to install turicreate, I am running Spyder 3.3.0 (Python version 3.5) on Anaconda.
WHAT I TRIED -
I sought help from various SO questions as well as github, but none helped. I tried using "pip" and it gave the following error-
Failed building wheel for turicreate
Running setup.py clean for turicreate
Failed to build turicreate
Tried "conda install ", but error again.
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:- turicreate
My "pip" and "conda" and "anaconda" are up to date. I tried creating a virtual environment and then installing "turicreate", but didn't help. I visited the anaconda.org website which had "conda install -c derickl turicreate", I tried, which gave the following error.
PackagesNotFoundError: The following packages are not available from current channels:- turicreate
Any help would be much appreciated.

If you go to the page of the turicreate package on the Python repository index (PyPI), you will find that it can only be installed natively on Linux and macOS.
The only way to use it on Windows is through the Windows Subsystem for Linux, and for that you need to install Anaconda or Python on it (I think, I've never used WSL).

I think your problem already solved :). But I had a similar problem and I solved it using a different way. I am posting it because I think it will help someone in the future. First, I want to say, If you are following something like a Video tutorial as mentioned in the question above, use that method. Thanks!
First Goto this Link URL. It will navigate you to colab with python version 2.
My runtime settings as follows. Runtime type: python 2 | Hardware accelerator:
TPU
Then run !pip install turicreate and after finishing installation it will say You must restart the runtime in order to use newly installed versions.After restart your runtime you will able to use turicreate with colab.
I hope it will help someone!

Related

The `GLIBC_2.29 not found` problem of the installation of transformers?

To run transformers I installed it on CentOS 8 by
conda install -c conda-forge transformers=4.12.2
following the method on this page, but I still encountered the same error:
version `GLIBC_2.29’ not found
Then I tried to install that from the huggingface channel and got stuck by lots of conflicts.
conda install -c huggingface transformers=4.12.2
At last I tried to install the glibc231 myself, and downloaded the rpm from this link, but I saw the following error, leading me to think that I would be in the wrong direction:
Error: Problem: conflicting requests
nothing provides glibc-common = 2.31-3.gf.el7 needed by glibc231-2.31-3.gf.el7.x86_64
nothing provides glibc-langpack = 2.31-3.gf.el7 needed by glibc231-2.31-3.gf.el7.x86_64
Any suggestions? Thanks in advance.
I had the same issues, and I downgraded to the following version:
tokenizers=0.10.1
transformers=4.6.1
I also encountered this error. If you don't want to downgrade (which may or may not lose features), I solved it by building it from sources. You can find the instructions here:
https://huggingface.co/docs/tokenizers/python/latest/installation/main.html#installation-from-sources
Note at least two caveats in the guide above:
The process will ask you to install rust, which is a language very robust to different platforms. You might even have it on your system if you've worked with rust before, but in that case do remember to update your rust toolchain with rustup update.
If you follow the process exactly, you will install the latest commit on master, which might or might not be a good thing. I recommend you select your desired version and do a git checkout ... first before you run python setup.py install.

How to install Pillow 7.0.0 on Pycharm running Python 3.8?

I'm trying to use Django and displaying images from a Sql db, following this LinkedIn Learning tutorial.
In the process of running manage.py to run my django development server, I face an issue where I have to have pillow installed.
This process has so far proven tedious and here are the things I've tried:
Ran the "simple" python -m pip Pillow, python -m pip Pillow --upgrade in the PyCharm terminal, then get:
a required dependency when compiling Pillow from source.
Please see the install instructions at:
https://pillow.readthedocs.io/en/latest/installation.html
(Pycharm Ultimate, which I have): Running the WSL environment as provided in the release notes. This should to work as I have the required pre-reqs installed in WSL. However, my computer runs the dreaded "skeletons" process for quite a long time, and I don't see it ending anytime soon.
Attempting to install from the PyCharm GUI also fails in the same way as 1.
Attempting to install the following binaries from https://www.lfd.uci.edu/~gohlke/pythonlibs/#pillow which is referenced in some other answers for this topic gives me this error when installing via pip install <wheel name here>:
Pillow-7.0.0-cp38-cp38-win_amd64.whl is not a supported wheel on this platform.
**pip3 doesn't work either. Mentioning although in my PyCharm virtualenv they both point to the same python interpreter. At first glance...
My main ask is - has anyone been able to install pillow 7.0.0 on Windows 10, for a PyCharm virtualenv? And, if so, how have you done it? So I can get back to learning! Thank you in advance!
EDIT: Updated steps taken in (1). Sorry about that

Error trying to install Turicreate in Anaconda with Python 3.5 under Windows 10 [duplicate]

I am new to Python and I am trying to build a recommendation engine by following a tutorial. The tutorials asks me to install turicreate, I am running Spyder 3.3.0 (Python version 3.5) on Anaconda.
WHAT I TRIED -
I sought help from various SO questions as well as github, but none helped. I tried using "pip" and it gave the following error-
Failed building wheel for turicreate
Running setup.py clean for turicreate
Failed to build turicreate
Tried "conda install ", but error again.
Solving environment: failed
PackagesNotFoundError: The following packages are not available from current channels:- turicreate
My "pip" and "conda" and "anaconda" are up to date. I tried creating a virtual environment and then installing "turicreate", but didn't help. I visited the anaconda.org website which had "conda install -c derickl turicreate", I tried, which gave the following error.
PackagesNotFoundError: The following packages are not available from current channels:- turicreate
Any help would be much appreciated.
If you go to the page of the turicreate package on the Python repository index (PyPI), you will find that it can only be installed natively on Linux and macOS.
The only way to use it on Windows is through the Windows Subsystem for Linux, and for that you need to install Anaconda or Python on it (I think, I've never used WSL).
I think your problem already solved :). But I had a similar problem and I solved it using a different way. I am posting it because I think it will help someone in the future. First, I want to say, If you are following something like a Video tutorial as mentioned in the question above, use that method. Thanks!
First Goto this Link URL. It will navigate you to colab with python version 2.
My runtime settings as follows. Runtime type: python 2 | Hardware accelerator:
TPU
Then run !pip install turicreate and after finishing installation it will say You must restart the runtime in order to use newly installed versions.After restart your runtime you will able to use turicreate with colab.
I hope it will help someone!

Setuptools error when trying to install a package

I’m completely new to Python and I want to install the package py-webrtcvad in Windows 7, but I'm stuck at the error ImportError: No module named 'pip.utils.setuptools_build'. There is an answer to this problem in stackoverflow which seems to solve the problem for others, but it doesn't work for me.
Here’s a summary of what I’ve done and tried so far:
Installed Python 3.5 and set up the Windows path environment so
that it works from any directory.
Installed pip for Python.
Tried to install the package with python -m pip install webrtcvad,
but it failed, returning the error Unable to find vcvarsall.bat.
I found a blog that deals with the vcvarsall.bat
problem: blogs.msdn.microsoft.com/pythonengineering/2016/04/11/unable-to-find-vcvarsall-bat. Following the directions of that blog:
First I just installed Visual C++ Build Tools 2015 and tried installing the package straight away (without updating setuptools), but I received a lot of error messages (which I didn’t write down).
I tried reinstalling setuptools, which I did following the directions in https://pypi.python.org/pypi/setuptools: I removed the version of setuptools that came with my Python installation (v20), and installed the latest version (v30). This time I got a different error message when trying to install py-webrtcvad: ImportError: No module named 'pip.utils.setuptools_build'.
Asked for assistance in the Python official chat. They made three
suggestions:
Updating pip with python -m pip install --upgrade pip. Didn’t
work. Again, the error ImportError: No module named 'pip.utils.setuptools_build'.
Reinstalling Visual C++ Build Tools 2015. No difference, same error
again.
Reinstalling Python itself. The Python installer offers three
choices: Repair, modify and uninstall.
Repair: Didn’t work. Same error.
Modify: Doesn’t look like it offers useful modifications for this.
Uninstall: Uninstalled and reinstalled. Still the same error.
I’m out of ideas. Can you help me?
Note: I imagine this should be doable in Windows 7 with Python 3.5. However, if it isn't I'm open to trying anything different. For example, installing a different version of Python would be no problem at all. I could also try installing Linux if that will solve the problem.
There was a bug in version 2.0.8 of webrtcvad that caused it to use the wrong flags when compiling for Windows: it was using -DWEBRTC_POSIX instead of -DWIN32. This might have been the source of the "lot of error messages" you got during one of your early attempts.
The fixed version has been pushed to pypi as version 2.0.9. I've confirmed that pip install webrtcvad works correctly on Windows 10. I'm using a pretty fresh install of Python, so I would try it first without reinstalling setuptools.

Error when installing python

I was trying to install python and for some weird and unknown reason, the installation process is stopped and returns this error
An error occurred during the installation of assembly 'Microsoft.VC90.CRT,version="9.0.21022.8",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32"'. Please refer to Help and Support for more information.
This is the first time I encountered such error. I tried 'googling' it but there seems to be no way to fix this up. Do you guys have any suggestions? I just want to install python.
I know this is an old post but I recently ran into this exact same issue.
It was caused by my machine having pending Windows updates that needed a restart to be applied.
Once you've reset your machine remove the C:\Python27 folder (this is important).
Rerun the installer and it should work with no issues :-)
Please provide the environment you have installed.
if windows 2008 R2, because of the rights issue, you need to cancel the installation of pip, it is best not to install in C.
msiexec.exe /quiet /i python-2.7.10.amd64.msi ADDLOCAL=DefaultFeature TARGETDIR=D:\python27
I encountered the same problem. The reason is that Python-dependent system updates need to be rebooted before they can be configured correctly
Try Anaconda it has a lot of libraries already packaged in it. And it comes with conda : a package manager.
conda install my-package
And my-package is already installed.

Categories

Resources