I am developing a program in Python on Windows 10 using Pycharm. In this program I need to import this Python package that uses pip to be installed.
Following the standard procedure to install with pip on Pycharm I get an error:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
The url gets me to an abandoned website but I finally found a way to install Visual C++ building tools (there).
Unfortunately I still have the same error.
I also upgraded the pip version to 18.1, in case the outdated version was to blame, but it didn't change anything.
What do I need to do for Pycharm to recognize my installation of Visual C++?
EDIT: This question is not the same as other questions that don't involve using Pycharm. Please take this into consideration while answering.
you don't have to use pip, there is very sophisticated way to install packages in pycharm.
In your pycharm, go to File>Settings>Project:[your-project-name]>Project Interpreter:
Click on the + sign:
and look for your package, in our condition ie. numpy. and click on install.
viola problem solved
Related
I want to install Python 2.7.12 but It shows following error.
There is a problem with this window installer package. A program required for this install to complete could not be run.
I saw one youtube video (https://www.youtube.com/watch?v=KikshWVWhzg) and so I provide full access to system and User. Even then, the same problem occurs.
How to solve this problem?
I solved this problem by my own.
Actually what happens is: In past, I installed Python 2.7.10 and by mistake, I deleted python27 file from C drive. But python remains installed in computer and when I tried to uninstall it, It shows the same error as above. So to uninstall this,
first I download similar python file (python2.7.10ci) version and try to install it. And you see it got installed. Due to this a file get generated in C drive with name python27 and now I can uninstalled python which I installed a long time back.
After uninstalling old python2.7.10, I right click on python 2.7.10ci (in control panel ) and choose repair. Due to this again a file generated with python27 and now I uninstalled this too easily.
After doing all this, I downloaded python 2.7.12 and try to install. And I able to install this without any error.
Environment:
Windows10
Python 3.5.3 64bit
CUDA Toolkit 8.0
cuDNN v5.1(extracted to Toolkit8.0 files)
Visual Studio Community 2015
Nightly binary#243 Tensorflow GPU version (pip install tensorflow_gpu-1.2.1-cp35-cp35m-win_amd64.whl)
The package has not been installed correctly, and the file _pywrap_tensorflow.pyd is not present in the C:\...\Lib\site-packages\tensorflow\python
After I got nearly the same error as #5949, I tried mrry's tensorflow_self_check.py.
The output is:
ERROR: Failed to import the TensorFlow module.
Python version is 3.5.
TensorFlow is installed at: C:\Python\Python35\lib\site-packages\tensorflow
All required DLLs are present. Please open an issue on the
TensorFlow GitHub page: github.com/tensorflow/tensorflow/issues
However, I can import the tensorflow successfully if I use the below version:
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/gpu/tensorflow_gpu-0.12.0-cp35-cp35m-win_amd64.whl
So, what's wrong the tensorflow_gpu-1.2.1 version?
I really hope someone can help me solve it completely. Thank you!
I would suggest to use Anaconda for the windows, if you want to try tensorflow. The number of issues is very less.
https://www.tensorflow.org/install/install_windows
But if you really want to work without anaconda.
Check your path to Cuda, Cudnn and python.
Ensure that cudnn is v5.1
TensorFlow 1.3 or later requires cuDNN 6.
Installing the Microsoft Visual C++ 2015 Redistributable Update 3 (x64 version) can fix it.
Do let me know about after trying above steps.
I recently installed Octave using the binary installer found on this site: http://wiki.octave.org/Octave_for_MacOS_X
I then tried to install the control package using 'pkg install -forge control' but it gave me the error 'pkg: error running `make' for the control package.'. I have gone through most of the threads regarding this error but with no success.
I then tried to use MacPorts to install the control package, I followed the instructions on the wiki page above with some help from this thread: Installing general package in octave has error. I believe I succeeded installing the packages because I can see them in the folder tree for Octave and MacPorts says it is installed when using the console.
The problem is that when i run some code in Octave it cannot build as it doesn't know that I have installed any additional packages. Using 'pkg list' in Octave it says that no additional packages installed. I feel like I need to link the two together but I don't know how?
I'll happily explain more if I need to and I hope you can help me out.
Many Thanks,
Sam.
You cannot "link the two together" (assuming you mean the binary version of octave and the MacPorts version).
If you have packages installed via MacPorts for the MacPorts version of octave, then they will only be available from the the MacPorts version of octave, so make sure you are running that.
Otherwise, figure out how to install the package with the octave binary version. It seems you require a build environment for this, but installing the command line tools (which you must have done for MacPorts to work) might have already solved this problem.
It seems to be a problem with gfortan compiler built-in with Octave. To solve this you should install an external fortran compiler.
Try this:
Install Xcode and command line tools for Xcode
Download and install a fortran compiler for MacOS, for example: http://coudert.name/software/gfortran-6.1-ElCapitan.dmg
Change the fortran compiler path in your octave, to this if you installed the compiler that I suggested in point number 2 you only must to open Octave and type: setenv('F77', '/usr/local/gfortran/bin/gfortran').
And Enjoy Octave for MacOS
Octave with control package 3.0.0 on MacOS
You haven't provided enough information for a precise diagnostic, but I had the same error message (and a few more), and re-installing octave from source solved it; see this link for more info, but essentially you can do it by running brew reinstall --build-from-source octave.
I have installed git-cola using the setup installer for windows. I pointed it to proper installs of git and python.
When I try to launch git-cola, nothing happens whatsoever.
Is there something I am missing here?
I had the same problem, in my case it was missing PyQt4 library. You can install PyQt4 by downloading an appropriate installer from Binary Packages section on PyQt4 Riverbank website.
How I investigated the issue
When I installed git-cola in a default directory and tried to run it using a command line
C:\Program Files (x86)\git-cola\bin>python git-cola.pyw
I got
Sorry, you do not seem to have PyQt4 installed.
Please install it before using git-cola.
e.g.: sudo apt-get install python-qt4
Note
I have two Python 2.7 installations, one at c:\program\Python27 and another at C:\Users\UserName\Anaconda2, I used the first one. I also installed Python SIP some time ago, I'm not sure if it required by git-cola.
I'm using PTVS 2.1 with IronPython 2.7.4 in Visual Studio Express 2013 for Windows Desktop with Update 3 on a Windows 8.1 Pro x64 host with .NET 4.5 installed. I have an empty Python project with default env set to IronPython 2.7. When I want to a virtual environment to the project PTVS tries to download setuptools and pip and fails miserably. The full log of the operation is here. In a gist it fails with:
System.IO.IOException
"Authentication failed because the remote party has closed the transport stream."
The IOError seems to be thrown when invoking the urlopen function. I've modified the sources so it tries downloading packages though http as well as https, but both gives same exceptions. PTVS executes everything without problems when working within official Python 2.7.8 environment.
I'm stuck with this problem. I can't install setuptools for IronPython through PTVS. Script provided in instructions at setuptools' PyPi page also uses openurl and fails with the same error.
Is there a way to install/use setuptools within IronPython env?
once 2.7.5 will be released, it will include a back port of ensurepip. Installing pip and setuptool is as simple as invoking:
ipy -X:Frames -m ensurepip
At the moment you can use 2.7.5b3 as a best approximation.
Older versions of IronPython may work with some older versions of setuptools or pip but the record is spotty.