I just want to add scipy, but it's a messy note. Ubuntu, Python 3.

ubuntu. I got an error when I did this.

sudo pip3 install scipy

error


Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qgxbcbh4/scipy/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-e_3afsxm-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qgxbcbh4/scipy/

I haven't installed pip3 with sudo apt-get install python3-pip. I put it in get-pip. http://qiita.com/mochizukikotaro/items/acdec17876854e59616a

So I tried the following.

$ sudo apt-get install libatlas-base-dev gfortran
$ sudo pip3 install scipy

No. .. It was moss again. ..

I will try this after all.

sudo apt-get install python3-scipy

I got it. .. I was able to confirm it with dpkg -l | grep scipy. However, I'm not sure why pip3 list contains scipy ...

I'll put this in as well.

sudo apt-get install python3-matplotlib

This is also included when I check it with pip3. I'm not sure about pip3. It's true. ..

Postscript

Doing the above in Vagrant is a hassle because there is no GUI. After all, I decided to do it on a Mac. At that time, even if I tried pip install matplotlib, I encountered an error that the module was missing, but I was able to go with pip install -U matplotli. (Tensorflow still doesn't work)

Recommended Posts

I just want to add scipy, but it's a messy note. Ubuntu, Python 3.
I want to build a Python environment
I want to create a window in Python
I want to make a game with Python
I want to write to a file with Python
I want to embed a variable in a Python string
I want to easily implement a timeout in python
I want to iterate a Python generator many times
I want to generate a UUID quickly (memorandum) ~ Python ~
I want to write in Python! (2) Let's write a test
I want to randomly sample a file in Python
I want to work with a robot in python.
[Python] I want to make a nested list a tuple
I want to run a quantum computer with Python
[Python] I want to add a static directory with Flask [I want to use something other than static]
[Python] I want to get a common set between numpy
I want to start a lot of processes from python
I want to send a message from Python to LINE Bot
I want to make input () a nice complement in python
I want to debug with Python
I want to use a wildcard that I want to shell with Python remove
[Python] I tried to implement stable sorting, so make a note
I want to do a full text search with elasticsearch + python
[Introduction] I want to make a Mastodon Bot with Python! 【Beginners】
I want to do it with Python lambda Django, but I will stop
I want to tweet on Twitter with Python, but I'm addicted to it
I want to print in a comprehension
[Python memo] I want to get a 2-digit hexadecimal number from a decimal number
I want to use jar from python
I want to convert a table converted to PDF in Python back to CSV
I want to analyze logs with Python
I want to play with aws with python
It's more recent, but I wanted to do BMI calculation with python.
I want to color a part of an Excel string in Python
A note I looked up to make a command line tool in Python
Python: I want to measure the processing time of a function neatly
Add a Python virtual environment to VSCode
I want to make a web application using React and Python flask
I want to do a monkey patch only partially safely in Python
I have a private Python package but I want to install pipenv on GitHub Actions and build a Docker Image
I want to create a nice Python development environment for my new Mac
I want to create a priority queue that can be updated in Python (2.7)
I want to send Gmail with Python, but I can't because of an error
I want to drop a file on tkinter and get its path [Tkinter DnD2]
When I connect to a remote Jupyter Server with VScode, it's remote but local
I want to add silence to the beginning of a wav file for 1 second
I want to exe and distribute a program that resizes images Python3 + pyinstaller
Python program is slow! I want to speed up! In such a case ...
A note I was addicted to when running Python with Visual Studio Code
Want to add type hints to your Python decorator?
I want to make matplotlib a dark theme
I want to do Dunnett's test in Python
I want to easily create a Noise Model
I want to use MATLAB feval with python
I want to INSERT a DataFrame into MSSQL
Just add the python array to the json data
I want to email from Gmail using Python.
[Python] I want to manage 7DaysToDie from Discord! 1/3
I don't want to take a coding test
How to add a Python module search path
I want to merge nested dicts in Python