I have python3.7.4 installed and when I install numpy using pip3 it says installation is successful. When I am in my main directory I run python3 and type in import numpy and it works fine
. However, when I cd into my python3 directory where I keep all my .py files and I try to run a python file that imports numpy I get an
. If I am in this python3 directory and I run python3 I open the same version of python however when I try to run import numpy I get the same
. My homework3.py file only contains one line which is import numpy as np just to see if it runs which it does not.
ValueError: not enough values to unpack (expected 2, got 1) when I try to import numpy in python3
116 Views Asked by g3or3 At
1
There are 1 best solutions below
Related Questions in NUMPY
- Why numpy.vectorize calls vectorized function more times than elements in the vector?
- Producing filtered random samples which can be replicated using the same seed
- Numpy array methods are faster than numpy functions?
- When I create a series of spectrograms from a long audio file, the colour intesities vary noticably
- How do I fix a NumPy ValueError for an inhomogeneous array shape?
- How should I troubleshoot "RuntimeWarning: invalid value encountered in arccos" in NumPy?
- Unravel by multi-index/group
- Calculating IRR Using Numpy
- Integrating with an array of upper limits without sacrificing time efficiency
- Why doesn't this code work? - Backpropagation algorithm
- How to remove integers from a mixed numpy array containing sub-arrays and integers?
- How to transfer object dataframe in sklearn.ensemble methods
- Rust cannot borrow as mutable
- Why does the following code detect this matrix as a non-singular matrix?
- How to detect the exact boundary of a Sudoku using OpenCV when there are multiple external boundaries?
Related Questions in TERMINAL
- How to fix npm errors without writing sudo in macOS?
- using whisper in the terminal gives an error
- Ubuntu terminal unable to take in input and read directories
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Use `ffprobe` to display subtitle content like the `cat` command
- I am using the bash terminal in VS Code, I am new to coding, and the terminal displays very differently, how do I get them to match?
- Reading & Writing to the same file from terminal
- In VS Code, when sending Python lines to terminal, why do I have to re-send lines that set a variable to an edited value before the lines that use it?
- I tried installing Bagisto on a Pi, and I decided to uninstall it. Now, my PHPmyadmin doesn't work
- Create react app not working, file already exists with EEXIST error
- c++ python ctypes dependency issues
- Auto-activation of the conda environment in the terminal (ps, cmd, bash) in VS Code on Windows 11 does not work. How to solve this problem?
- Command Prompt/PowerShell Closing Automatically with Error -532462766/-1 in Visual Studio Code
- Output from sys.exit sometimes appears on terminal before output from print
- minikube not starting the service
Related Questions in PYTHON-3.7
- Having multiple issues for installation of Multiple version of Python
- Fitsio Python Package Import Error - undefined symbol: fits_use_standard_strings
- Unable to import BatchNormalization from tensorflow.python.keras.layers
- Using subprocess.run caused script to hang
- VS2022 with Python 3.10 failing to discover tests
- pandas import as pd fails with"UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 14: invalid start byte"
- from reportlab.pdfgen import canvas gives module not found error
- Any way to collect exit status of zombie process in python?
- Python PIL UnidentifiedImageError
- Problem with Mayavi import error in matlab
- wexpect and finding expected prompts
- subprocess error while installing aiohttp==3.8.1 and setproctitle==1.1.10 on mac
- Unable to find 'endstream' marker for obj starting at 13367
- How to Run FasterSeg on Jetson Nano
- Error installing python3.7 on ubuntu 16.04
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I had a file in the same directory where Python is installed with the same name as "numbers.py" so I deleted the extra file and everything worked fine.