Cannot pip install orjson (python 3.6).

See original GitHub issue
sudo pip3 install --upgrade orjson:

Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/usr/lib/python3.6/tokenize.py", line 452, in open
        buffer = _builtin_open(filename, 'rb')
    FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-build-3dwbn4b3/orjson/setup.py'

Not sure why it can’t find setup when it was just downloaded. I’ve verified that it exists in the source.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (1 by maintainers)

github_iconTop GitHub Comments

18reactions
alexprengerecommented, Nov 6, 2020

You probably have an old pip. Try upgrading pip first:

python -m pip install --upgrade pip

I had the same issue with pip version 18, latest version fixes the issue.

0reactions
GabrielAbdulcommented, Mar 10, 2022

You probably have an old pip. Try upgrading pip first:

python -m pip install --upgrade pip

I had the same issue with pip version 18, latest version fixes the issue.

This worked for me

Read more comments on GitHub >

github_iconTop Results From Across the Web

orjson - PyPI
Fast, correct Python JSON library supporting dataclasses, datetimes, and numpy.
Read more >
Unable to install orjson 3.3.0 on macOS 12.2.1 with Apple M1 ...
0 on my MacBook Pro with Apple M1 Pro chip running macOS Monterey 12.2.1. Python version: 3.8.9. Command used: pip install orjson==3.3.0. Error:....
Read more >
Resolving orjson dependency conflict when installing django ...
To fix this I am assuming you are: Running on Windows; using pipenv. To find out what version of python your are running...
Read more >
pip install fastapi[all] is failing due to a rust component?
Hi I'm trying to install fastapi, but it seems to be failing when im installing orjson. Here is the full error code: Building...
Read more >
orjson. A fast JSON library for Python | by Tony | Geek Culture
This article will use orjson in the 3.8.2 environment, use the following command to install orjson: $ python -V Python 3.10.0 $ pip...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found