shiyancao opened a new issue #4470:
URL: https://github.com/apache/iceberg/issues/4470


   Hello Team,
   
   I am getting `error: option --user not recognized` error when following 
[Python QuickStart] 
doc(https://iceberg.apache.org/docs/latest/python-quickstart/#installation). 
May I know how to get rid of the error?
   
   ```
   git clone https://github.com/apache/iceberg.git
   cd iceberg/python
   pip install -e .
   ```
   
   ```
   shiyancao@Shiyans-MBP-2 python % pip3 install -e .
   Defaulting to user installation because normal site-packages is not writeable
   Looking in indexes: https://pypi.apple.com/simple
   Obtaining file:///Users/shiyancao/IdeaProjects/syc/iceberg/python
     WARNING: Value for prefixed-purelib does not match. Please report this to 
<https://github.com/pypa/pip/issues/10151>
     distutils: 
/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/normal/lib/python3.8/site-packages
     sysconfig: /Library/Python/3.8/site-packages
     WARNING: Value for prefixed-platlib does not match. Please report this to 
<https://github.com/pypa/pip/issues/10151>
     distutils: 
/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/normal/lib/python3.8/site-packages
     sysconfig: /Library/Python/3.8/site-packages
     WARNING: Additional context:
     user = False
     home = None
     root = None
     prefix = 
'/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/normal'
     WARNING: Value for prefixed-purelib does not match. Please report this to 
<https://github.com/pypa/pip/issues/10151>
     distutils: 
/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/overlay/lib/python3.8/site-packages
     sysconfig: /Library/Python/3.8/site-packages
     WARNING: Value for prefixed-platlib does not match. Please report this to 
<https://github.com/pypa/pip/issues/10151>
     distutils: 
/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/overlay/lib/python3.8/site-packages
     sysconfig: /Library/Python/3.8/site-packages
     WARNING: Additional context:
     user = False
     home = None
     root = None
     prefix = 
'/private/var/folders/zc/9scsxsbs10z93qzjtfmtx42w0000gn/T/pip-build-env-a5t86fiu/overlay'
     Installing build dependencies ... done
     Checking if build backend supports build_editable ... done
     Getting requirements to build wheel ... done
     Preparing metadata (pyproject.toml) ... done
   Requirement already satisfied: singledispatch in 
/Users/shiyancao/Library/Python/3.8/lib/python/site-packages (from 
py-iceberg==0.1.0a1) (3.7.0)
   Requirement already satisfied: six in 
/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages
 (from singledispatch->py-iceberg==0.1.0a1) (1.15.0)
   Installing collected packages: py-iceberg
     Running setup.py develop for py-iceberg
       ERROR: Command errored out with exit status 1:
        command: /Library/Developer/CommandLineTools/usr/bin/python3 -c 'import 
io, os, sys, setuptools, tokenize; sys.argv[0] = 
'"'"'/Users/shiyancao/IdeaProjects/syc/iceberg/python/setup.py'"'"'; 
__file__='"'"'/Users/shiyancao/IdeaProjects/syc/iceberg/python/setup.py'"'"';f 
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) 
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = 
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, 
__file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
            cwd: /Users/shiyancao/IdeaProjects/syc/iceberg/python/
       Complete output (6 lines):
       usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
          or: setup.py --help [cmd1 cmd2 ...]
          or: setup.py --help-commands
          or: setup.py cmd --help
       
       error: option --user not recognized
       ----------------------------------------
   ERROR: Command errored out with exit status 1: 
/Library/Developer/CommandLineTools/usr/bin/python3 -c 'import io, os, sys, 
setuptools, tokenize; sys.argv[0] = 
'"'"'/Users/shiyancao/IdeaProjects/syc/iceberg/python/setup.py'"'"'; 
__file__='"'"'/Users/shiyancao/IdeaProjects/syc/iceberg/python/setup.py'"'"';f 
= getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) 
else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = 
f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, 
__file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs 
for full command output.
   WARNING: You are using pip version 21.3.1; however, version 22.0.4 is 
available.
   You should consider upgrading via the 
'/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade 
pip' command.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to