If you need to execute the setup script from another directory, ensure you are entering the project dir in the script.
from setuptools import setup root = os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)) os.chdir(root) # or using pathlib (Python>=3.4): import patlib root = pathlib.Path(__file__).parent os.chdir(str(root)) setup(...)
Related Posts:
- How to install pip with Python 3?
- How to uninstall a package installed with pip install –user
- How to install python3 version of package via pip on Ubuntu?
- Could not find a version that satisfies the requirement tensorflow
- Could not find a version that satisfies the requirement tensorflow
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- How to install pip3 on Windows?
- How can I install Python’s pip3 on my Mac?
- What is the purpose of “pip install –user …”?
- ‘pip3’ is not recognized as an internal or external command, operable program or batch file
- How can I install Python’s pip3 on my Mac?
- python mpl_toolkits installation issue
- Pipenv: Command Not Found
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- ImportError: No module named ‘yaml’
- How to fix ModuleNotFoundError: No module named ‘pip._internal’ with python source code installation
- Django Rest Framework — no module named rest_framework
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- How to install Openpyxl with pip
- How to install NumPy for Python 3.6
- How to install PyQt4 on Windows using pip?
- How to install PyQt4 on Windows using pip?
- Use Gif Logo For Loading Screen In Kivy
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- How do I update\upgrade pip itself from inside my virtual environment?
- How to update/upgrade a package using pip?
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- ImportError: No module named pip
- What does the list() function do in Python?
- Invalid character in identifier
- Could not install packages due to an EnvironmentError:
- Python Error: AttributeError: __enter__ [duplicate]
- Conda uninstall one package and one package only
- filedialog, tkinter and opening files
- Error in Python script “Expected 2D array, got 1D array instead:”?
- Name ‘xrange’ is not defined in Python 3 [duplicate]
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- How do order of operations go on Python?
- What is the difference between pip and conda?
- How to upgrade pip3?
- How to know the version of pip itself
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- TypeError: cannot convert the series to
- ‘End of statement expected’ in pycharm
- Change figure size and figure format in matplotlib
- How can I concatenate str and int objects?
- error: Unable to find vcvarsall.bat
- pg_config executable not found
- error: Failed to load the native TensorFlow runtime
- setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- ImportError: No module named ‘encodings’
- TypeError(“‘bool’ object is not iterable”,) when trying to return a Boolean
- using pip3: module “importlib._bootstrap” has no attribute “SourceFileLoader”
- Using Pip to install packages to Anaconda Environment
- PermissionError: [WinError 5] Access is denied
- How to delete last item in list?
- Don’t understand this SyntaxError: illegal target for annotation
- Using Queue in python
- Converting int to bytes in Python 3
- How to reinstall a pip package even if it exists
- How to get the current working directory using python 3?
- min() arg is an empty sequence
- No module named “Torch”
- SyntaxError invalid token
- For loop and ‘numpy.float64’ object is not iterable error
- clang error: unknown argument: ‘-mno-fused-madd’ (python package installation failure)
- TypeError: ‘dict_keys’ object does not support indexing
- How to strip all whitespace from string
- Python Binomial Coefficient
- pythonw.exe or python.exe?
- pip install -r requirements.txt [Errno 2] No such file or directory: ‘requirements.txt’
- Zsh: Conda/Pip installs command not found
- How to convert ‘binary string’ to normal string in Python3?
- python3 TypeError: ‘function’ object is not iterable
- pip connection failure: cannot fetch index base URL http://pypi.python.org/simple/
- How can I convert a .py to .exe for Python?
- Find which version of package is installed with pip
- How to start from second index for for-loop
- Converting a sentence to piglatin in Python
- Python Error – TypeError: input expected at most 1 arguments, got 3 [duplicate]
- A general tree implementation?
- ModuleNotFoundError: No module named ‘seaborn’ in Python IDE
- Is there a ceiling equivalent of // operator in Python?
- TypeError: ‘set’ object does not support indexing
- Python 3.6 No module named pip
- Root mean square of a function in python
- Checking to see if a string is an integer or float
- Why am I getting ImportError: No module named pip ‘ right after installing pip?
- How to know/change current directory in Python shell?
- What is an easy way to implement fprintf in python?
- How to use cmp() in Python 3?
- Generator expression must be parenthesized if not sole argument
- Does python have header files like C/C++?
- Error: No module named ‘fcntl’
- Python can’t find file
- TypeError: got multiple values for argument
- IOError: [Errno 32] Broken pipe when piping: `prog.py | othercmd`
- Python webbrowser.open() to open Chrome browser
- TensorFlow: how is dataset.train.next_batch defined?