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
- How can I serialize a numpy array while preserving matrix dimensions?
- store numpy array in mysql
- Trying to save an np array with string and floats, but getting a error
- Does numpy broadcast in *all* of its functions?
- Is there any implementation of hstack in gnumpy
- Mayavi - color vectors based on direction instead of magnitude
- How to install scipy misc package
- Numpy Vs nested dictionaries, which one is more efficient in terms of runtime and memory?
- How to count distance to the previous zero in pandas series?
- Changing the amount of points changes the result of the fft
- Succint way of handling missing observations in numpy.cov?
- Fastest Way to access and put values in matrix
- Enforcing that inputs sum to 1 and are contained in the unit interval in scikit-learn
- Cython speed vs numpy
- Best practice for using common subexpression elimination with lambdify in SymPy
Related Questions in TERMINAL
- Do executable files always open a terminal window on MacOS?
- C++: Re-use line printed to console
- How to enable branch hints in Mac OS git?
- When was a file used by another program
- Autocompletion does not work in R terminal inside square brackets
- How to get Mouse support for dtterm terminal in solaris
- Creating Rails Controller In Sub-directory
- Force the terminal output buffer to flush
- How to detect what terminal people use
- How to stop the iPython notebook to run the command line, run only python code
- How to find and show all the information in a text file
- Updating folder structure with Mac Terminal
- Why is it slower to print directly to console/terminal than redirecting?
- Where can I read the ANSI terminal standard?
- How to get C-` key combo recognized in Emacs under Mac?
Related Questions in PYTHON-3.7
- Setting can only see and prohibit download
- How i can cheek if string start with some text at python3?
- Decompile pyc in 2.7 in python 3 env
- Unable to plot the graph for ff=2 in below code:
- Segmentation fault (core dumped) with RTX 3080
- How to display the Python Dictionary key and value pairs in HTML part of the python code
- Sorting python dict by value in Python 3.7
- How to parse enums by value from query parameters using webargs?
- How can I convert a list of strings to an array of float numbers?
- AttributeError: module 'PIL.ImageQt' has no attribute 'ImageQt'
- How to open websites in background and then close without interrupting flow of program using python?
- Python3.7 & Windows : incorrect unicode characters in docstrings in interactive mode
- MacOS Python 3.7.7 internal json module is corrupted; how to fix?
- Raspberry pi 4: selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities
- subprocess.Popen: how to pass commands with single and double quotes
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 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.