I have been trying to install Numpy for python 3.4, and it keeps going wrong, I tried following the advice at I can't seem to install numpy, but I keep getting told that pip is not a recognised command, even after I add ;C:\Python34\Scripts; to my PATH variable, anyone know why this might be happening?
I had this problem as well running Windows 8. I found a helpful solution from a word doc from Worcester Polytechnic Institute. Here is the PDF (http://web.cs.wpi.edu/~cs1004/c15/Resources/Windows/SettingUpPython_Windows.pdf).
They provide an installer for it at (http://www.cs.wpi.edu/~cs1004/c15/Resources/Windows/python-3.4.2.amd64.msi)
Should be an easy solution.
Related
This question is not a duplicate of this question, because I am trying to create an app.
I am currently following this tutorial, but when I try to run my app,
my command prompt prints out this error:
Why does this error happen and how can I solve it? I read through all the answers to the linked question, but none of them are pertinent to my problem.
Please anyone help me, I still haven't found a working solution; I am getting desperate!!!
Edit: I can't just install and uninstall pynput? Idk why it doesn't work because shouldn't pynput come with idle?
Version: 3.74 python idle, most updated version of pyinstaller
The following might help you if you haven't tried them already:
Update pip from the command line
Unistall pyinstaller
Re-install pyinstaller and try it again
If the above does not work, try running the following command in the command line. Make sure there are some print statements in your code to see if it works.
python monitoring_culmination_product.py
If you got a message saying "python is not recognised as an internal or external command" then python might have not been added as an environment path.Try this to fix the issue.
You could always re-install python if things get difficult.(make sure you install the appropriate version 32-64bit)
If the command though executed without a problem. Try to use pyinstaller on another file to see if the problem has to make sure the problem has to do with pyinstaller.
From a personal experience, pyinstaller can be unreliable at times so I put the following line in my projects just to make sure. It might help you too.
import pkg_resources.py2_warn
Disclaimer: Although it is not specified I assume that you are using Windows
You could try to use conda create to get an environment containing all the need dependencies (numpy, etc) and then use pyinstaller as explained in this discussion.
Please fall back to 1.6.8 version of pynput. pip install pynput==1.6.8
Ref : https://stackoverflow.com/a/63721929/14759065
Description
When I tried to install package sacrebleu, I got an error like this:
Installation Error
It said "System cannot find the specified file". However I have no idea how to solve it.
I have tried installing package mecab-python3. But it confuses me that it was successfully installed in Anaconda but got an error, "Microsoft Visual C++ 14.0 is required", in original python38 environment.
Whether the package mecab-python3 has been installed or not, I still got the same error and cannot install sacrebleu.
I also tried restarting my machine but it does not work.
Is there anyone could solve it? or I want to know if there is any alternative package I can use to calculate BLEU score.
Thanks Anyway!
My Environment
Windows 10
Python 3.8
pip 20.1.1
Anaconda3 v4.8.2
I'm the mecab-python3 maintainer. Sorry it's giving you trouble.
The README has a link to the C++ runtime pack you have to install on Windows, if you install that it should work.
I have heard reports of the package not working with Anaconda on Windows specifically, though it seems to work sometimes. If you have trouble please open an issue and I'll try to fix it. On the other hand, if you aren't processing Japanese there's no reason to import the module and that may be a bug in sacrebleu.
Ah, actually, I just saw your screenshot - didn't notice it before.
Versions before 1.0 don't support Windows. But to keep using the old dictionary, sacrebleu has to make some changes, so they don't support 1.0+ yet. I think they are working on it, see this issue.
I am struggling with installing "IJulia" in Julia. I tried Pkg.add("IJulia") and .build("IJulia")
but there must be some problem going on with this part it keeps saying
"LoadError: Failed to precompile Parsers
[69de0a69-1ddd-5017-9359-2bf0b02dc9f0] to
C:\Users\박원정.julia\compiled\v1.4\Parsers\833b9_AFua3.ji."
It would be much appreciated if someone can help me with resolving this problem...
On the first run IJulia is installing Jupyter. Having bad luck this might fail.
Once you perform the already suggested deleting .julia\compiled, you can try installing Jupyter into your Julia manually (this is something I do when providing Jupyter installation instructions for large groups of people and is tested to work each time on many machines and environments):
using Pkg
pkg"add Conda"
using Conda
Conda.runconda(`install jupyter --yes`)
pkg"add IJulia"
pkg"precompile"
I have been trying to intall scikit-learn and pytorch using their respective commands given in the docs:
The commands for installing PyTorch are:
1) pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1-cp37-cp37m-win_amd64.whl
2) pip3 install torchvision
The command for installing scikit-learn is:
pip install -U scikit-learn
Some background:
I am using Windows 8.1, Python 3.7.2. My pip is updated. I have also installed Anaconda for solving this using conda, but had zero luck!(Also, here I am running into 'conda' unrecognized error which is another story). Here are the paths my PATH variable holds.
PATH
C:\Users\satya\Anaconda3;
C:\Users\satya\Anaconda3\Library\mingw-w64\bin;
C:\Users\satya\Anaconda3\Library\usr\bin;
C:\Users\satya\Anaconda3\Library\bin;
C:\Users\satya\Anaconda3\Scripts;
C:\Users\satya\AppData\Local\Programs\Python\Python37\Scripts\;
C:\Users\satya\AppData\Local\Programs\Python\Python37\; C:\Users\satya\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7
The Actual Problem:
The same commands for installation given above work perfectly fine on my other Windows 10, but, for my Windows 8.1 it gives this error which has become a real PITA
Import Error: DLL load failed The specified module could not be found
When I import sklearn or import torch I get the exact same error. All the time.
Back Story:
I have searched almost all the related questions I could find on Stackoverflow and Github for 6+ hours to help me solve this problem. But, none of the answers have helped till now and some haven't had an "understandable" answer. Maybe, its just a small fix, but now, I am choosing to post a question on SO.
My Question Again:
Can someone please help out and try to explain what I am missing out here? I really want to fix this error for good(and want to be in a position to fix it if I encounter it again). An elaborate answer would really help understand easily.
Thank You!
Please check your python build number with the following command.
conda list python
Python 3.7.2 with build number h8c8aaf0_2 has a solved issue.
If this is the case, an update will do.
conda update python
So I am using the Python interpreter PyPy as it makes my code run faster. However, everytime I try to run another code of mine, I get import error: No such module found. When I do a pip install pandas/numpy, it does not help as firstly the normal Python-2.7 folder already has it. And when I direct it to be installed directly to PyPy, the installation fails when it runs the setup.py file.
Could someone suggest another way in which I could get pandas and numpy to pypy? Thanks in advance!!
P.S. I have already tried: pypy setup.py install for pandas and numpy and it results in errors as well.
I'm not sure about the status of Pandas on Windows, but it looks like it doesn't work for shallow reasons and could be fixed. You should probably open an issue in PyPy's own tracker:
https://bitbucket.org/pypy/pypy/issues/
Be sure to mention it's on Windows, and include the complete copy of everything you typed and what is output.