Do you anchor all versions in requirements.txt to a spesific number? Is it the right way? Is there any way to get latest version that does not break my app? To not missing security updates etc.
How to install highest version of a Python package which doesn't break my App?
233 Views Asked by mcan At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in DEPENDENCY-MANAGEMENT
- Gradle dependencies recursively
- Media3 dependencies for build.gradle.kts for Android Studio 2023.2.1 Patch 2
- importing non-master go branch in another go repo
- Why use peer dependencies instead of regular after npm 7?
- Finding all available versions of a NuGet package within a specific version range
- Android Kotlin DSL gradle not finding dependencies in custom repositories
- How to fix CVE-2021-28170 Vulnerability in org.glassfish.web:jakarta.servlet.jsp.jstl:3.0.1; cannot find newer library version
- Overriding transitive dependency version in library's pom doesn't override version in pom using the library
- CMake is importing the wrong version of a library, used through a dependency, when it exists in different versions on the system
- Install xesmf with poetry
- IntelliJ, Maven and External Libraries - problems with dependencies
- Maven: error when adding a dependency to a jar which is inside a .tgz file
- Error when npm installing package.json dependencies - ERESOLVE unable to resolve dependency tree
- Sharing dependency version with NPM workspaces in monorepo
- Why am I unable to control the version of a grandchild dependency?
Related Questions in REQUIREMENTS.TXT
- Whats the correct way to implement dockerfile if the requirements.txt exist in parent-child folder
- Adding a script to automatically create 'deployment PR', will 'git push' work if it is not coming from a particular PR, but from a build step instead?
- Why do my txt files on VScode show up as full of errors?
- getting an error while running docker compose for first time
- Package Version Conflict
- Install a private package with credentials from requirements.txt
- Why is the real dependency different from the one listed in requirements.txt
- pipreqs gives blank file
- Docker Container Error: Could not find a version that satisfies the requirement autopepli (from versions: none)
- Removing redundancies in python poetry dependencies after migrating from a requirements.txt
- Django on CPanel, can't install requirements.txt
- How to fix the encoding of a requirements.txt file on macOS?
- Add requirements.txt automatically to setup.py to install them when installing a package
- ModuleNotFoundError on Azure app function although requirements.txt exists
- Could not install packages due to an OSError
Related Questions in REQUIREMENTS-MANAGEMENT
- is it possible to link attribute enumerations (Types) to objects in another module in DOORS?
- Custom relation created in Cameo - date attribute not showing up in table?
- Relation between stakeholder and functional requirements
- Where to put a small utility function that I would like to use across multiple packages/projects that I develop?
- Visualising nodes classified in heirarchies and their relationshops
- How to understand the meaning of high level requirement and low level requirement in DO-178C?
- Acceptance test design in Requirements Validation (Software Engineering)
- Is it possible to dynamically define enumarated type based on another attributes values in IBM DOORS?
- requirement traceabilty in gitlab
- Is it possible to export reports from Jama Connect with baseline signatures
- Can we integrate DOORS tool as a plugin to a java application?
- How can I run my program when I already had the module and the error said: ModuleNotFoundError?
- Update objects from two modules with same attribute in DOORS
- How to install highest version of a Python package which doesn't break my App?
- Requirement tracking Doxygen
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 # Hahtags
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?
Installing latest dependency may break your app if the new code syntax is not backwards compatible. Here's how I approach to maintain the
requirements.txtfile.pip freeze > requirements.txtfrom that virtual env to generate the fileReadmefileThis way I can always know for sure the Python version and version of the dependencies with which the app was built. This of course does not solve other issues related to OS type/version compatibility that might occur.
Tools like Docker are created to solve all such dependency and cross-platform compatibility problems so that is worth exploring.
EDIT
If you still want to always have the latest version of the package, simply remove the version numbers and keep the package name.
E.g. Instead of
mysql-connector==2.2.9usemysql-connector